val = stdin.nextInt();

Average Rating
0 out of 5 stars. 0 votes.

val = stdin.nextInt();

Write a statement that reads an integer value from standard input into val. Assume that val has already been declared as an int variable . Assume also that stdin is a variable that references a Scanner object associated with standard input.