Hello, I'm new to Java as well, so I'm happy to be able to answer your question.
You can make a LinkedList to hold any kind of object, including classes you've made yourself. If you've made a class named Foo, then you can make a new LinkedList of Foo objects like this:
Code:
LinkedList<Foo> listOfFoos = new LinkedList<Foo>();
The first part, "LinkedList<Foo> listOfFoos", is a declaration of the name listOfFoos, declaring that it's of the type "a LinkedList set up to hold objects of type Foo." The second part, "new LinkedList<Foo>()", makes an actual object which is "a LinkedList set up to hold objects of type Foo." The object is plucked from the ether (that is, constructed) and a reference to it is associated with the name "listOfFoos". Now you can use that name to do anything that a LinkedList does:
Code:
listOfFoos.add(new Foo());
listOfFoos.removeLast();
if (listOfFoos.size() < 12) { ... }
I believe if you just say LinkedList without the < > you'll get a generic version that can hold anything. Another way to ask for a linked list that can hold anything is to say LinkedList<Object> -- that can hold anything which is an Object or a subclass of Object, aka everything.
HTH.
<3