It's not a secret anymore!
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "find method" Watch "find method" New topic

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

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:
subject: find method
It's not a secret anymore!