forked from txs72/JavaTutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestIntegerMatrix.java
More file actions
executable file
·26 lines (24 loc) · 1.26 KB
/
TestIntegerMatrix.java
File metadata and controls
executable file
·26 lines (24 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* */ package ch19;
/* */
/* */ public class TestIntegerMatrix
/* */ {
/* */ public static void main(String[] args) {
/* 6 */ Integer[][] m1 = { { Integer.valueOf(1), Integer.valueOf(2), Integer.valueOf(3) }, { Integer.valueOf(4), Integer.valueOf(5), Integer.valueOf(6) }, { Integer.valueOf(1), Integer.valueOf(1), Integer.valueOf(1) } };
/* 7 */ Integer[][] m2 = { { Integer.valueOf(1), Integer.valueOf(1), Integer.valueOf(1) }, { Integer.valueOf(2), Integer.valueOf(2), Integer.valueOf(2) }, { Integer.valueOf(0), Integer.valueOf(0), Integer.valueOf(0) } };
/* */
/* */
/* 10 */ IntegerMatrix integerMatrix = new IntegerMatrix();
/* */
/* 12 */ System.out.println("\nm1 + m2 is ");
/* 13 */ GenericMatrix.printResult((Number[][])m1, (Number[][])m2, (Number[][])integerMatrix
/* 14 */ .addMatrix(m1, m2), '+');
/* */
/* 16 */ System.out.println("\nm1 * m2 is ");
/* 17 */ GenericMatrix.printResult((Number[][])m1, (Number[][])m2, (Number[][])integerMatrix
/* 18 */ .multiplyMatrix(m1, m2), '*');
/* */ }
/* */ }
/* Location: /Volumes/TXS.128G/hope useful/practice/2020.jar!/ch19/TestIntegerMatrix.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 1.1.3
*/