Examlex

Solved

Consider the Method Below, Which Displays the Characters from a String

question 13

Multiple Choice

Consider the method below, which displays the characters from a String in reverse order. Each character appears on a separate line. Select the statement that should be used to complete the method, so that it performs a recursive method call correctly. public static void printReverse(String word)
{
If (word.length() > 0)
{
___________________________
System.out.println(word.charAt(0) ) ;
}
}


Definitions:

Related Questions