String sentence;
String str1, str2, str3, str4;
Int length1;sentence = "First exam is on Monday.";str1 = sentence.substring(6, 12) ;
Str2 = str1.substring(0, 4) ;
Str3 = sentence.replace('i', '#') ;
Str4 = sentence.indexOf("on") ;length1 = sentence.length() ;Based on the code above, what is the value of str3?
A) "First exam is on Monday."
B) "F#rst exam #s on Monday."
C) "F#rst exam is on Monday."
D) "#i### #### i###########."
Correct Answer:
Verified
Q40: String sentence;
String str1, str2, str3, str4;
Int length1;sentence
Q41: What is the output of the following
Q42: Which of the following is an area
Q44: The showMessageDialog method has _ parameter(s).
A) one
B)
Q44: Which of the following outputs 56734.9875 to
Q46: Consider the following statements.double x;
String y;y =
Q47: String sentence;
String str1, str2, str3, str4;
Int length1;sentence
Q48: Which of the following statements would store
Q49: What happens when JOptionPane.PLAIN_MESSAGE is chosen as
Q50: Suppose that you have the declaration:int num
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents