How can I occupy the [0][0] space with information from the user. When it prints, it begins at [0][1] instead of [0][0]
Scanner scan = new Scanner(System.in);
int sizeArray;
//Prompting user for number of users to be added
System.out.println("How many users are you going to add?");
sizeArray = scan.nextInt(); //Reading users to add
String user [][] = new String[sizeArray][2];
System.out.println("Enter name followed by unique password: ");
for(int i = 0; i < sizeArray; i++) {
for (int j = 0; j< 2; j++) {
user[i][j] =scan.nextLine();
}
}
System.out.println("You entered: ");
for(int i = 0; i < sizeArray; i++) {
for(int j = 0; j < 2; j++) {
System.out.println(" Name["+i+"]["+j+"] = "+user[i][j]);
}
System.out.print("");
}