Solved

Insert the Missing Code in the Following Code Fragment

Question 62

Multiple Choice

Insert the missing code in the following code fragment. This fragment is intended to read floating-point numbers from a text file. Scanner in = new Scanner(. . .) ;
While (____________)
{
Double hoursWorked = in.nextDouble() ;
System.out.println(hoursWorked) ;
}


A) in.getNextDouble()
B) in.peek()
C) in.hasNextDouble()
D) in.readNextWord()

Correct Answer:

verifed

Verified

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

Related Questions