Solved

Ch = InFile.next().charAt();while (InFile.hasNext())

Question 9

Multiple Choice

ch = inFile.next() .charAt() ;while (inFile.hasNext() )
{
System.out.println(ch) ;
Ch = inFile.next() .charAt() ;
}The above code is an example of a(n) ____ loop.


A) sentinel-controlled
B) flag-controlled
C) EOF-controlled
D) counter-controlled

Correct Answer:

verifed

Verified

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

Related Questions