Answers for "my java cde is not taking string input form user when used after nextint() method to read the inut"

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 "my java cde is not taking string input form user when used after nextint() method to read the inut"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language