Class CharMatrix
java.lang.Object
CharMatrix
public class CharMatrix
- extends java.lang.Object
|
Field Summary |
(package private) char[][] |
m
|
|
Method Summary |
char |
charAt(int row,
int col)
|
void |
clearRect(int row0,
int col0,
int row1,
int col1)
|
int |
countInCol(int col)
|
int |
countInRow(int row)
|
void |
fillRect(int row0,
int col0,
int row1,
int col1,
char fill)
|
boolean |
isEmpty(int row,
int col)
|
static void |
main(java.lang.String[] args)
|
int |
numCols()
|
int |
numRows()
|
void |
setCharAt(int row,
int col,
char ch)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m
char[][] m
CharMatrix
public CharMatrix(int rows,
int cols)
CharMatrix
public CharMatrix(int rows,
int cols,
char fill)
charAt
public char charAt(int row,
int col)
clearRect
public void clearRect(int row0,
int col0,
int row1,
int col1)
countInCol
public int countInCol(int col)
countInRow
public int countInRow(int row)
fillRect
public void fillRect(int row0,
int col0,
int row1,
int col1,
char fill)
isEmpty
public boolean isEmpty(int row,
int col)
main
public static void main(java.lang.String[] args)
numCols
public int numCols()
numRows
public int numRows()
setCharAt
public void setCharAt(int row,
int col,
char ch)