Skip to main content

Java Scaner help

No replies
razor_1234
Offline
Joined: 2012-02-16
Points: 0

System.out.print("\n\nEnter the name of student " + (i+1) + ": ");
name = sc.nextLine();
Instead of pausing to allow me to enter input, the program merely continues to the next line. Any help would be appreciated.