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
Get step-by-step solutions from verified subject matter experts
