My CS professor recommends using the nextLine() method and parsing out the integer rather than using the nextInt() method. I was just wondering why use nextLine() instead of nextInt().
For Example:
Scanner in = new Scanner(System.in);
System.out.println("Enter an integer: ");
String input = in.nextLine();
int num = Integer.parseInt(input);
Instead of:
Scanner in = new Scanner(System.in);
System.out.println("Enter an integer: ");
int input = in.nextInt();