public class IntArrayWorker
extends java.lang.Object
| Constructor | Description |
|---|---|
IntArrayWorker() |
| Modifier and Type | Method | Description |
|---|---|---|
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
|
public void setMatrix(int[][] theMatrix)
theMatrix - the one to usepublic int getTotal()
public int getTotalNested()
public void fillCount()
public void print()
public void fillPattern1()