Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

EASY JAVA QUESTIONS Question 28 1 pts For String c = \"Now is the time for all\"

ID: 3719154 • Letter: E

Question

EASY JAVA QUESTIONS

Question 28 1 pts For String c = "Now is the time for all". The Java statements String i -c.substring(7); String j- c.substring(4, 15); will result in: O i-"he time for alr and,-"is the time" O the time for all and j - "s the time" O the time for all and j - "is the time" ihe time for all and j-"s the time" Question 29 1 pts Consider the String below: String r = "a toyota", Which of the following will create the String r1-"a TOYOTa"? O String r1- r.replace toyot" TOYOT" O String r1- rreplaceftT) r1-r-replace(o'.'0'); r1- r.replacely.Y); String r1 rreplacef'tT).replacefo 0)replacefy.Y O String r1- rsubstring(2, 4).toUpperCase0:

Explanation / Answer

Question 28
Answer:
i="the time for all" and j="is the same"

Question 29
Answer:

String r1 = r.replace("toyot","TOYOT");