I got a problem in a program I'm working on here:
String[ ][ ] applicant = new String[appno][2];
for (i = 0; i < applicant.length; i++){
System.out.println("Input applicant's name: ");
appname = keyboard.nextLine();
applicant[i][0] = appname;
System.out.println("Input applicant's position: ");
apppos = keyboard.nextLine();
applicant[i][1] = apppos;
}
The input works, but the code seems to skip the first instance of "appname = keyboard.nextLine()" every time (all further instances allow me to input). How do I solve this?