Look at the following code: String str = one two three four; String[] tokens = str.split( );

Question:

Look at the following code: 

String str = "one two three four";
String[] tokens = str.split(" ");
Int x = tokens.length;
String first = tokens[0];

What value will be stored in x? What value will the first variable reference?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: