Originally posted by: MCrusty
Originally posted by: Zugzwang152
Originally posted by: skace
I just read this thread because linked lists rock, although I didn't know there was such a thing as a 'singly linked list'. I havn't gotten to use linked lists since college, since I don't ever do programming, but <3 them all the same.
well they're retardedly useless except for illustrating concepts, as in a programming class. i went over Linked Lists in my intro and second-semester programming classes, both in Java.
I find LinkedLists quite usefull sometimes, especially when you are working with data that will only be traversed in order. When using Java and Iterators it hardly makes a difference what type of list storage you use, one of the great points of all the layers of abstraction in java.
List myList = new LinkedList();
Iterator myIterator = myList.getIterator();
Then just use myIterator to go through the list, this way you can change the type of myList without having to change code. LinkedList's are nice in the view of memory management