I am not much aware of the game poker but as per my understanding i understood that after each hand the starting player will be changed (i.e if A,B,C are three players then at first time A will be playing first then second time C will and third time B will be the first to play.
If this is the requirement then you can keep on rotating the players after each round and put your logic to find the winner.
The following code can be used for rotation
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
public class Main {
public static void main(String[] args) {
List numbers = new ArrayList();
for (int i = 0; i < 5; i++) {
numbers.add(i);
}
System.out.println("Original Array -" + Arrays.toString(numbers.toArray()));
for(int i=0;i<numbers.size();i++){
Collections.rotate(numbers, 1);
System.out.println("After "+ i +" Rotation -"+ Arrays.toString(numbers.toArray()));
System.out.println("Element at first position - " +numbers.get(0));
}
}
}
Output :-
Original Array -[0, 1, 2, 3, 4]
After 0 Rotation -[4, 0, 1, 2, 3]
Element at first position - 4
After 1 Rotation -[3, 4, 0, 1, 2]
Element at first position - 3
After 2 Rotation -[2, 3, 4, 0, 1]
Element at first position - 2
After 3 Rotation -[1, 2, 3, 4, 0]
Element at first position - 1
After 4 Rotation -[0, 1, 2, 3, 4]
Element at first position - 0
NOTE:If you want to make rotation is some other fashion just change the digit in the following line
Collections.rotate(numbers, 1);