Question: Consider the String below: String r = a toyota; Which of the following will create the String r1 = a TOYOTa? Group of answer choices

Consider the String below: String r = "a toyota"; Which of the following will create the String r1 = "a TOYOTa"? Group of answer choices String r1 = r.replace('t', 'T'); r1 = r.replace('o', '0'); r1 = r.replace('y', 'Y'); String r1 = r.substring(2, 4).toUpperCase(); String r1 = r.replace("toyot", TOYOT"); String r1= r.replace('t','T').replace(o', 'O').replace('y', 'Y')

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!