Solved

Assuming That InputFile References a Scanner Object That Was Used

Question 21

Multiple Choice

Assuming that inputFile references a Scanner object that was used to open a file, which of the following statements will read an int from the file?


A) int number = inputFile.nextInt() ;
B) int number = inputFile.next() ;
C) int number = inputFile.readInt() ;
D) int number = inputFile.integer() ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions