Java programmeerimise konspekt
int[][] a = new int[][]{ {5, 2, 4}, {0, 1, 5}, {1, 0, 1} };
System.out.println ("Maatriks A: " + soneKuju (a));
int[][] b = new int[][]{ {2, 8, 0}, {5, 3, 1}, {7, 4, 6} };
System.out.println ("Maatriks B: " + soneKuju (b));
int[][] c = summa (a, b);
System.out.println ("A + B: " + soneKuju (c));
int[][] d = korrutis (a, b);
System.out.println ("A * B: " + soneKuju (d));
System.out.println ("B minReaMax on: " + minReaMax (b));
System.out.println ("B maxReaMin on: " + maxReaMin (b));
System.out.println ("B minVeeruMax on: " + minVeeruMax (b));
System.out.println ("B maxVeeruMin on: " + maxVeeruMin (b));
if (minReaMax (a) == maxVeeruMin (a))
System.out.println ("A alumine sadulpunkt on: " + minReaMax
(a));
else
System.out.println ("A-l ei ole alumist sadulpunkti");
if (maxReaMin (a) == minVeeruMax (a))