I have a LinkedList like this
LinkedList l = new LinkedList();
l.add("1");
l.add("2");
l.add("3");
l.add("4");
l.add("5");
l.add("6");
i want move the value 6 to before 3 and also deleted in the old position.
I need a command like this l.move(5 to 3) or l.shift(5 to 3).
I can manually do like
String s = l.get(5);
l.add(2,s);
l.remove(6);
Thanks