swap nodes in a linked list + java code example Example: java linked list swap elements Collections.swap(List<?> list, int i, int j)