Respuesta :
Answer:
var applesToBuy = readLine("How many apples would you lik
e? ");
Explanation:
It asks the user to enter answer the question and it stores the answer into the applesToBuy variable.
Its right dont worry.
In the given scenario, if we use "InputStream" class object that inputs value from the user-end, in which we use "readInt" keyword. In Java, this function of the DataInputStream class reads 4 input bytes and returns an integer value. This method takes the next 4 bits from the input stream, transforms them to integers, and would then returns.
And the wrong choice can be defined as follows:
- For choice 1, it use the "readLine" method which inputs the string value.
- For choice 2, it use the "println" method which prints value.
- For choice 4, the "nextInt" method is the part of "Scanner" class.
Therefore, the answer is "Option 3", which is "var applesToBuy - readInt("How many apples would you like?");".
Learn more:
brainly.com/question/20637377