Class BasicRecursionTest

java.lang.Object
  |
  +--BasicRecursionTest

public class BasicRecursionTest
extends java.lang.Object

Class BasicRecursionTest illustrates the use of a very basic recursive function to sum the elements in an array. The elements are read from stdin and stored in the array. The resulting sum is printed to stdout.

The summing computation is performed by the sumArray method in the BasicRecursion class.


Constructor Summary
BasicRecursionTest()
           
 
Method Summary
static void main(java.lang.String[] args)
          Call the recursiveSum method and print the result to stdout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicRecursionTest

public BasicRecursionTest()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Call the recursiveSum method and print the result to stdout.