Answers for "what can be donw to overcome the problem with sc.nextline() in java"

1

sc.nextline skips

int option = input.nextInt();
input.nextLine();  // Consume newline left-over
String str1 = input.nextLine();
Posted by: Guest on May-07-2020

Code answers related to "what can be donw to overcome the problem with sc.nextline() in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language