I want to keep the order of the items added to the list. So, I used LinkedList in Java.
Now I want to be able to exchange two items in a linked list. First of all, I cannot find elementAt() for LinkedList . In addition, there is no way to add an item to the specified position.
java linked-list swap
Boolean
source share