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.next();
b. int number = inputFile.integer();
c. int number = inputFile.readInt();
d. int number = inputFile.nextInt();
d. int number = inputFile.nextInt();
Computer Science & Information Technology
You might also like to view...
Goal Seek is an example of a(n) ________ tool in Excel 2016
Fill in the blank(s) with correct word
Computer Science & Information Technology
Categorize each of the following items as either hardware or software:
a) CPU b) Compiler c) Input unit d) A word-processor program e) A C# program
Computer Science & Information Technology