Class RecursiveMultiplication

java.lang.Object
  extended by RecursiveMultiplication

public class RecursiveMultiplication
extends java.lang.Object

Demonstration of three types of recursion

Version:
10-16-08
Author:
TK Rogers

Constructor Summary
RecursiveMultiplication()
           
 
Method Summary
(package private) static double addup(int x)
           
(package private) static int hi(java.lang.String name, int n)
          purpose: Method causes "hello " + name to be output on n lines Preconditions: name--a sting representing a name to output.
static void main()
           
static int multiply(int a, int b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecursiveMultiplication

public RecursiveMultiplication()
Method Detail

addup

static double addup(int x)

hi

static int hi(java.lang.String name,
              int n)
purpose: Method causes "hello " + name to be output on n lines Preconditions: name--a sting representing a name to output. n--an integer representing the number of times the sting is output. Postconditions: none.


main

public static void main()

multiply

public static int multiply(int a,
                           int b)