Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Matrix {
- private int mat[][];
- public Matrix(int[][] m) {
- mat = m;
- }
- public void reverseAllRows() {
- for(int i = 0; i < mat.length; i++)
- {
- ArrayUtil.reverseArray(mat[i]);
- }
- }
- public static void reverseMatrix() {
- }
- public void printMat() {
- for(int i = 0; i < mat.length; i++)
- {
- ArrayUtil.printArray(mat[i]);
- System.out.println("");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment