Advertisements
Advertisements
Question
State the values stored in the variable str1 and str2.
String s1 = "good"; String s2 = "world matters";
String str1 = s2.substring(5).replace('t', 'n').
String str2 = s1.concat(strl1);
Short Answer
Solution
Value of the variable str1 is: manners
Value of variable str2 is: good manners
shaalaa.com
Is there an error in this question or solution?