String s1 = “don’t string”

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”

Complete Answer:

Get Instant Help in Homework Asap
Get Instant Help in Homework Asap
Calculate your paper price
Pages (550 words)
Approximate price: -
Open chat
1
Hello 👋
Thank you for choosing our assignment help service!
How can I help you?