Chapter 15: Problem 13
What does the following program do? 1 // Exercise 15.13 Solution: SomeClass.java 2 3 public class SomeClass 4 { 5 public String someMethod( 6 int array2[], int x, String output ) 7 { 8 if ( x < array2.length ) 9 return String.format( 10 "%s%d ", someMethod( array2, x + 1 ), array2[ x ] ); 11 else 12 return ""; 13 } // end method someMethod 14 } // end class SomeClass
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.