String s1 = “don’t string”
String s2 = “me along!”
a. Example: Construct an expression involving s1 and/or s2 that produces the following value:
“string me”:
s1.substring(6) + ” ” + s2.substring(0, 2)
Using the same expression as above, please do the following:
b. Construct an expression involving s1 and/or s2 that produces the following value:
“sing along”
c. Construct an expression involving s1 and/or s2 that produces the following value:
“DING!”
d. Construct an expression involving s1 and/or s2 that produces the following value:
“dime”
e. Construct an expression involving s1 and/or s2 that produces the following value:
‘r’
f. Construct an expression involving s1 and/or s2 that produces the following value:
“r”
g. Construct an expression involving s1 and/or s2 that produces the following value:
“dm”
h. Construct an expression involving s1 and/or s2 that produces the following value:
9
i. Construct an expression involving s1 and/or s2 that produces the following value:
“don’u suring”