unleashed.ch28
Class NewMath

java.lang.Object
  |
  +--unleashed.ch28.NewMath

public class NewMath
extends java.lang.Object

This is the class comment for the NewMath class. The primary purpose of the NewMath class is to provide a very simple example of a class so that javadoc comments can be added to it and by consequence be added to the generated documentation for this class.


Constructor Summary
NewMath()
          Default constructor for the NewMath class
 
Method Summary
 int addInteger(int x, int y)
          Add two integers together
 int divideInteger(int x, int y)
          Divide integer x by integer y
static void main(java.lang.String[] args)
          the main method for the NewMath class.
 int multiplyInteger(int x, int y)
          Multiply two integers together
 int subtractInteger(int x, int y)
          Subtract two integers
 java.lang.String testDump(int x, int y)
          output the data to the screen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewMath

public NewMath()
Default constructor for the NewMath class

Method Detail

addInteger

public int addInteger(int x,
                      int y)
Add two integers together

Returns:
the values when added together

subtractInteger

public int subtractInteger(int x,
                           int y)
Subtract two integers

Returns:
the values when subtracted

multiplyInteger

public int multiplyInteger(int x,
                           int y)
Multiply two integers together

Returns:
the values when multiplied

divideInteger

public int divideInteger(int x,
                         int y)
Divide integer x by integer y

Returns:
the values when divided

testDump

public java.lang.String testDump(int x,
                                 int y)
output the data to the screen

Returns:
a long string that contains newline characters

main

public static void main(java.lang.String[] args)
the main method for the NewMath class. It instantiates the class and prints the results of testDump to the screen.