Examlex

Solved

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

question 4

Multiple Choice

In the following code, how many times will the for loop execute?
String str = "1,2,3,4,5,6,7,8,9") ;
String[ ] tokens = str.split(",") ;
For (String s : tokens)
System.out.println(s) ;


Definitions:

Related Questions