Meaningless Drivel is fun!*
The moose likes Beginning Java and the fly likes find method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
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
 
 
subject: find method
 
Similar Threads
method to test if an item is in the list
java.lang.OutOfMemoryError with link list
Super dumb newbie question...String[] args vs. String args[]
test bed for array based list implementation
Pleas help with array