Skip to main content Link Menu Expand (external link) Document Search Copy Copied

void moveCurrentRight()

Moves the current node close to the end node

Example

LinkedList<int> list = {3, 4, 5, 6};
list.setCurrent(list.getEnd());
//current is now at 6
list.moveCurrentRight();
//does nothing
list.setCurrent(list.getBase());
//current is now at 3
list.moveCurrentRight();
//current is now at 4