Multiple Choice
Insert the missing code in the following code fragment. This fragment is intended to read all words from a text file. File inputFile = new File("dataIn.txt") ;
Scanner in = new Scanner(dataIn.txt) ;
While (____________)
{
String input = in.next() ;
System.out.println(input) ;
}
A) in.getNext()
B) in.peek()
C) in.hasNext()
D) in.nextWord()
Correct Answer:

Verified
Correct Answer:
Verified
Q92: Consider the following code snippet: Scanner in
Q93: Which of the following statements reflects the
Q94: An example of a fatal error that
Q95: Which of the following is the correct
Q96: Consider the following code snippet: public static
Q98: When you start a Java program from
Q99: The PrintWriter class is an enhancement of
Q100: When a program throws an exception within
Q101: Consider the following code snippet: Scanner in
Q102: Consider the following code snippet. PrintWriter outputFile