Question: Repeat the previous exercise, but change next to nextLine in the statement that assigns a value to b. Previous exercise What does the Java code
Repeat the previous exercise, but change next to nextLine in the statement that assigns a value to b.
Previous exercise
What does the Java code
Scanner keyboard = new Scanner(System.in);
keyboard.useDelimiter("y");
System.out.println("Enter a string.");
String a = keyboard.next();
String b = keyboard.next();
System.out.println("a is" + a);
System.out.println("b is" + b);
display when the keyboard input is
By theprickingof my thumbs
Step by Step Solution
3.43 Rating (153 Votes )
There are 3 Steps involved in it
a is b b ... View full answer
Get step-by-step solutions from verified subject matter experts
