Computer Applications

Consider the following input:
    one, two three, four, five

What values will the following code assign to the variables input1 and input2?

    String input1 = keyboard.next();
    String input2 = keyboard.next();

Input in Java

6 Likes

Answer

input1 ⇒ one,
input2 ⇒ two

Answered By

2 Likes


Related Questions