Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main_q1 {
- public static void main(String[] args) {
- int[][] m1_nums = { {1,2,2,3},
- {5,4,3,0},
- {3,0,1,7},
- {7,7,1,3}};
- Matrix m1 = new Matrix(m1_nums, 3, 1);
- int[][] m2_nums = {{1,2,2,3},
- {5,4,3,0},
- {3,0,1,7},
- {7,7,1,3}};
- Matrix m2 = new Matrix( m2_nums,2, 2);
- System.out.println("are they the same? "+m1.isSame(m2));
- System.out.println("in how many lines the n1 and n2 appears?"+m1.appearsInside());
- System.out.println("in how many lines the n1 and n2 appears?"+m2.appearsInside());
- int k = 3;
- System.out.println("given the value "+k+" is an inner 2d-arry that is left cornerare n1 and n2?"+m1.look_4_KxK(k) );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement