Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Matrix {
- @Override
- public boolean equals(Object obj) {
- return false;
- }
- @Override
- public String toString() {
- return "string";
- }
- private int[][] arr;
- public Matrix(int m, int n) {
- arr = new int[m][n];
- }
- public Matrix(Matrix m){
- }
- int get(int x, int y) {
- return arr[x][y];
- }
- int m = m.getRowCount();
- int n = n.getColumnCount():
- void put(int x, int y, int value) {
- arr[x][y] = value;
- }
- }
Add Comment
Please, Sign In to add comment