Im trying to run a for loop that prints each users score in an array list. I don't know how to output who has the greatest/highest score however. Can someone please help me?
for (int i = 0; i < playersList.size(); i++) {
System.out.println("Player " + (i + 1) + ", "
+ playersList.get(i).getName() + " Score: " + playersList.get(i).getTotalScore());
playersList.get(i).getFrameScores();
System.out.println("**************");
}