daily pastebin goal
26%
SHARE
TWEET

qdqwd

a guest Mar 18th, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static void main(String[] args){
  2.         Integer m[][]=new Integer[3][3];
  3.         Integer m1[][]=new Integer [3][3];
  4.         String m2[][]=new String[3][3];
  5.         String m3[][]=new String [3][3];
  6.         String addResult1[][]=new String[3][3];
  7.         Scanner scanner=new Scanner(System.in);
  8.         for(int i=0;i<3;i++){
  9.             for(int j=0;j<3;j++){
  10.                 m1[i][j]=1;
  11.             }
  12.         }
  13.         for(int i=0;i<3;i++){
  14.             for(int j=0;j<3;j++){
  15.                 m[i][j]=2;
  16.             }
  17.         }
  18.        
  19.         Matrix<Integer> matrix1 =new Matrix<>(m,m1);
  20.         matrix1.addMatrix();
  21.         Matrix<String>matrix2=new Matrix<>(m2,m3);
  22.         matrix2.addMatrix();
  23.  
  24.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top