but when my current code will ask the number of players then just print out the questions and not take any responses from the user and i get a run-time error then..
System.out.println("Enter number of players: ");
numPlayer = in.nextInt();
for(int i = 1;i < (numPlayer+1);i++)
{
System.out.println("Enter name for Player "+i+": ");
String name = in.nextLine();
players.add(name);
}

New Topic/Question
Reply




MultiQuote




|