Solved

What Will Be the Tokens in the Following Statement

Question 19

Multiple Choice

What will be the tokens in the following statement?
String str = "red$green&blue#orange";
String[] tokens = str.split("[$&#]") ;


A) "red", "green", "blue", and "orange"
B) "$", "&", and "#"
C) "[", "$", "&", "#", and "]"
D) None of the above

Correct Answer:

verifed

Verified

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

Related Questions