aspose file tools
The moose likes Beginning Java and the fly likes find method Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "find method" Watch "find method" New topic
Author

find method

Ronald Pruitt
Ranch Hand

Joined: Jan 15, 2001
Posts: 32
I would like to be able to find an item in a linked list or list array, to create to lists, one ordered by key value and one by count.
Given the following code:

Where can I find examples of the find method that would do the job? Because I'm getting the "method must be declared abstract" message when I try to compile this..
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
The only thing I see wrong on a quick once over is your method declaration
public static WordElem find(List T, String sTarget);
This is the reason your getting the abstract error, abstract method definitions end in ;
Change it to
public static WordElem find(List T, String sTarget)


I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
 
I agree. Here's the link: http://zeroturnaround.com/jrebel
 
subject: find method
 
Similar Threads
Super dumb newbie question...String[] args vs. String args[]
test bed for array based list implementation
Pleas help with array
method to test if an item is in the list
java.lang.OutOfMemoryError with link list