Which XXX is needed for enterNumber() to read a value from standard input? publicintenterNumber()XXX{ int value; value = System.in.read(); return value; }

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter6: Looping
Section: Chapter Questions
Problem 2PE
icon
Related questions
Question
  1. Which XXX is needed for enterNumber() to read a value from standard input?

    publicintenterNumber()XXX{
    int value;
    value = System.in.read();
    return value;
    }




     

      a.

    import java.io

      b.

    throws SystemException

      c.

     

    nothing is needed

     

      d.

    throws IOException

     

    JAVA

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT