|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSummer
Summer adds the values in a after application of the function func
Constructor Summary | |
Summer(int aSize)
Constructor for objects of class Summer |
Method Summary | |
int |
func(int i)
applies a function to a[i] |
void |
readInput()
this gets terminal input for new values in a |
void |
sumTester()
tests the sumup and readInput methods |
int |
sumup()
does the summing |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Summer(int aSize)
Method Detail |
public int func(int i)
public void readInput()
public void sumTester()
public int sumup()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |