is it possible to generate an already existing list (filled with names, for example) in a new order?
So the list is filled as follows:
ArrayList<String> playerNames = new ArrayList<String>();
for (int n = 0; n < 5; n++)
{
String name = "Player"+i;
playerNames.add(name);
}
Now the first one in the list is "Player0".
Is it now possible to start this list with a new random number? So like the following example:
Player0
Player1
Player2
Player3
Player4
becomes
Player3
Player4
Player0
Player1
Player2
So the order of the list should be kept, only the first in the list should be changed (and of course all following ones)
I hope you understand what I mean by that.