Monday, July 27, 2009

Blue j questions number 5 please help if you can . thank you?

In order to cut the text "This,is,a,test" into four separate words "This" "is" "a" "test" we can use the method split of the class String. Which one of the following examples is the correct use of the method split to achieve this effect? If you think none of them are correct, you can choose “None of these are correct”.











a. "This,is,a,test".split;





b. "This,is,a,test".split( );





c. "This,is,a,test".split(" ");





d. "This,is,a,test".split(",");





e. None of these are correct.

Blue j questions number 5 please help if you can . thank you?
Is this homework?





You should know better.

nobile

No comments:

Post a Comment