Assume the following variable has been declared and given values as shown:
String name = "Mamey, Jean";
Which statement will print the name as "Jean Mamey"?
A) System.out.print(name.substring(7) + " " + name.substring(0, 5) ) ;
B) System.out.print(name.substring(8, 4) + " " + name.substring(1, 5) ) ;
C) System.out.print(name.substring(8) + " " + name.substring(1, 4) ) ;
D) System.out.print(name.substring(2) + " " + name.substring(1) ) ;
Correct Answer:
Verified
Q77: What is result of evaluating the following
Q78: What is the value of the following
Q79: A student's class average can be computed
Q80: Which is a correct representation of the
Q81: What will be printed by the statements
Q83: What will be printed by the statements
Q84: What does the following statement sequence print
Q85: Assume the following variables have been declared
Q86: What does the following statement sequence print
Q87: What is the result of the following
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