arrays - Reverse LinkedList in java -
i need understand simple example
linkedlist list = new linkedlist(); list.add("j"); list.add("a"); list.add("v"); list.add("a");
i have simple linkedlist , need pass method reverse
public void reverse(linkedlist list) { }
which return reversed new list
and not need arraysutils reversing it
what short , practice way having reversed output.
the same needed understand simple arrays.
Comments
Post a Comment