Solved

Insert the Missing Code in the Following Code Fragment

Question 7

Multiple Choice

Insert the missing code in the following code fragment. This fragment is intended to read characters from a text file. Scanner in = new Scanner(. . .) ;
In) useDelimiter("") ;
While (in.hasNext() )
{
Char ch = ____________;
System.out.println(ch) ;
}


A) in.getNext()
B) in.next()
C) in.next.charAt(0)
D) in.nextChar()

Correct Answer:

verifed

Verified

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

Related Questions