For adding an item I use
public void add(Object s) {
list.add(s);
}
For deleting an item I use
public void remove(Object s) {
list.remove(s);
}
Now for searching the LinkedList when I use the dot operator and search the built in API I do not see anything that would suggest a search function. Would it be contains?
Since it seems you want to know where the item is placed in the list so you can access the actual instance found, you want to use
indexOfto find it andgetto return the found instance. There is no method that combines the two.