For the following code,how many times would the while loop execute? StringTokenizer strToken =
New StringTokenizer("Ben and Jerry's ice cream is great.") ;
While (strToken.hasMoreTokens() )
{
System.out.println(strToken.nextToken() ) ;
}
A) 1
B) 3
C) 5
D) 7
Correct Answer:
Verified
Q23: Look at the following code. Integer myNumber;
MyNumber
Q25: Given the following statement,which of the following
Q29: If you do not specify delimiters in
Q31: In a string that contains a series
Q32: What will be the value of matches
Q33: What will be the value of loc
Q37: What will be printed after the following
Q40: What is the value of str after
Q44: What does the following statement do?
Float number
Q55: What will be the tokens in the
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents