Write a statement that reads a word from standard input into firstWord.

LANGUAGE: Java

CHALLENGE:

Write a statement that reads a word from standard input into firstWord.
Assume that firstWord. has already been declared as a String variable.
Assume also that stdin is a variable that references a Scanner object associated with standard input.

SOLUTION:

The Bad News: The content you are trying to access is only available to members.

The Good News: You too can be a member, simply Click Here.

Already a member?

Posted in ,