IT 114: Introduction to Java
Class 22 Ungraded Quiz
-
Can a Scanner object only be
used with input from the keyboard?
-
What do you call the string used the mark the end of one token
and the beginning of the next?
-
Can a Scanner object read a file of numbers
with more than one number on each line?
-
By default what does a Scanner object use
to mark the end of one token and the beginning of the next?
-
If you were totaling the numbers in a file and were adding
each number to the variable total
what would you give total as it's first value?
-
If you were writing a program to find the maximum value which
was stored in the variable max
what would you give max as it's first value?
-
If you were writing a program to find the maximum value which
was stored in the variable min
what would you give min as it's first value?
-
What do you use to read information from a file?
-
What argument do you need to create the object needs to read a file?
-
What kind of control structure do you use to read the information in a while?