Guest User

Untitled

a guest
Jul 19th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. class Matrix {
  2.  
  3. @Override
  4. public boolean equals(Object obj) {
  5. return false;
  6. }
  7.  
  8. @Override
  9. public String toString() {
  10. return "string";
  11. }
  12.  
  13. private int[][] arr;
  14.  
  15. public Matrix(int m, int n) {
  16. arr = new int[m][n];
  17.  
  18.  
  19. }
  20. public Matrix(Matrix m){
  21.  
  22. }
  23.  
  24. int get(int x, int y) {
  25. return arr[x][y];
  26. }
  27. int m = m.getRowCount();
  28. int n = n.getColumnCount():
  29.  
  30. void put(int x, int y, int value) {
  31. arr[x][y] = value;
  32. }
  33. }
Add Comment
Please, Sign In to add comment