System.out.print("Please select a game: ");
for (String s : gamesArray) {
System.out.print(s + ", ");
}
Output:
Please select a game: spin, tof, Press any key to exit...
The output I am excepting:
Please select a game: spin, tof Press any key to exit...
Why is it adding another ',' after the last array item? How do I prevent it?