Solved

In the Following Code, How Many Times Will the for Loop

Question 33

Multiple Choice

In the following code, how many times will the for loop execute?
String str = ("Ben and Jerry's ice cream is great.") ;
String[ ] tokens = str.split(" ") ;
For (String s : tokens)
System.out.println(s) ;


A) 1
B) 3
C) 5
D) 7

Correct Answer:

verifed

Verified

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

Related Questions