Consider the String below:
String r = "a toyota";
Which of the following will create the String r1 = "a TOYOTa"?
a. String r1 = r.replace("toyot", TOYOT");
b. String r1 = r.replace('t','T');
r1 = r.replace('o','0');
r1 = r.replace('y','Y');
c. String r1 = r.replace('t','T').replace('o', '0').replace('y', 'Y');
d. String r1 = r.substring(2, 4).toUpperCase();
c. String r1 = r.replace('t','T').replace('o', '0').replace('y', 'Y');
You might also like to view...
MC SAX-based parsers generate notifications called__________ as the parser processes the document.
a) nodes. b) announcements. c) events. d) None of the above.
Which one of these apps cannot be used as a text editor?
a. Apple Text Edit b. BB Edit 10 c. Microsoft Word d. Notepad ++
Celeron and Pentium are names of specific processor designs
Indicate whether the statement is true or false
What RAID type below utilizes parity data across all drives instead of using a separate drive to hold parity error checking information?
A. RAID 0 B. RAID 1 C. RAID 2 D. RAID 5