A basic LinkedList program in Java.