write a MoveFirst(T elt) method to point the head at that element. Then the tail would point to the element before that one.
so if i have " one two three four)
and the moveFirst(two);
it should read "two three four one"
Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.
Have Programming Question? Ask it here!