Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.87 KB | None | 0 0
  1. class Matrix {
  2.     private boolean[] [] a;
  3.     private boolean[] [] b;
  4.     private int q;
  5.  
  6.  
  7.  
  8.     //public Matrix (boolean [] [] a, boolean [] [] b, String q)
  9.     public Matrix (int q)
  10.     {
  11.         //this.a = a;
  12.         //this.b = b;
  13.         this.q = q;
  14.     }
  15.  
  16.     //public boolean multiplyMatrix() {
  17.         //boolean test1 = a[0][0];
  18.         //boolean test2 = b[0][0];
  19.         //System.out.println(test1.toString);
  20.  
  21.         //return test1;
  22.         //return test2;
  23.  
  24.     //}
  25.     @Override
  26.     public String toString () {
  27.         return q;
  28.         //System.out.println(test1.toString());
  29.     }
  30. }
  31.  
  32. public class Test {
  33.     public static void main(String[] args) {
  34.         //int [] aa = {1, 0, 1};
  35.         int q = 184;
  36.         //boolean [] [] aa = {{true, false, false}, {false, false, false}, {false, false, false}};
  37.         //boolean [] [] bb = {{false, false, false}, {false, false, false}, {false, false, false}};
  38.         Matrix m = new Matrix(q);
  39.         System.out.println(m);
  40.     }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement