String string = "one,two,three, four,five";
String[] tokens = string.split(", ");
What is the value of tokens[2]?
"one"
"two"
"three"
"four"
None of the above
String string = "What is the position the number 2 in this string?";
int pos = string.indexOf( "2");
What is the value of pos?
4
16
-1
32
None of the above
String[] tokens = string.split(", ");
What is the value of tokens[2]?
"one"
"two"
"three"
"four"
None of the above
String string = "What is the position the number 2 in this string?";
int pos = string.indexOf( "2");
What is the value of pos?
4
16
-1
32
None of the above
Comment