how to know to move to next line for Scanner in java code example
Example: sc.nextline skips
int option = input.nextInt();
input.nextLine(); // Consume newline left-over
String str1 = input.nextLine();
int option = input.nextInt();
input.nextLine(); // Consume newline left-over
String str1 = input.nextLine();