|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
Matrix - two dimensional indexed collection; for use with book Classic Data Structures in Java by Timothy A Budd, published by Addison-Wesley, 2001.
Collection| Fields inherited from class java.io.Serializable |
serialVersionUID |
| Method Summary | |
java.lang.Object |
elementAt(int row,
int column)
find element at give location |
int |
numberColumns()
determine number of columns in matrix |
int |
numberRows()
determine number of rows in matrix |
void |
setElementAt(java.lang.Object val,
int row,
int column)
change element at given location |
void |
setSize(int rows,
int columns)
set bounds in number of rows and columns |
| Method Detail |
public void setSize(int rows,
int columns)
rows - number of rows in matrixcolumns - number of columns in matrixpublic int numberRows()
public int numberColumns()
public java.lang.Object elementAt(int row,
int column)
row - index for row dimension of matrixcolumn - index for column dimension of matrix
public void setElementAt(java.lang.Object val,
int row,
int column)
val - new value for positionrow - index for row dimension of matrixcolumn - index for column dimension of matrix
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||