Given a string:

String s = "true,false";
How can a new string, which is equal to "test", be formed?
Explanation
String - is not an array, therefore its indexing is not possible. Class String does not contain functions first() and last().

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes