|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object IntArrayWorker
public class IntArrayWorker
Constructor Summary | |
---|---|
IntArrayWorker()
|
Method Summary | |
---|---|
void |
fillCount()
Method to fill with an increasing count |
void |
fillPattern1()
fill the array with a pattern |
int |
getTotal()
Method to return the total |
int |
getTotalNested()
Method to return the total using a nested for-each loop |
void |
print()
print the values in the array in rows and columns |
void |
setMatrix(int[][] theMatrix)
set the matrix to the passed one |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntArrayWorker()
Method Detail |
---|
public void fillCount()
public void fillPattern1()
public int getTotal()
public int getTotalNested()
public void print()
public void setMatrix(int[][] theMatrix)
theMatrix
- the one to use
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |