plain/semester_1/erg8_ask1/Erg8_Ask1.java
public static void main(String[] args) {
        int n = 10; int m = 10;
        int thesimax, thesimin;
        int my2DArray[][] = new int[n][m];
        int avgLine[];
        int avgCol[];
        fillPin(n, m, my2DArray);
        System.out.println("\nshowpin2d");
        showPin2D(n, m, my2DArray);
        avgLine = findMeanLine(n, m, my2DArray);
        avgCol = findMeanCol(n, m, my2DArray);
        System.out.println("\nshowpin1d avgline");
        showPin1D(avgLine);
        System.out.println("\nshowpin1d avgcol");
        showPin1D(avgCol);
        System.out.println("\ndiagonal sum: " + findDSum(n, m, my2DArray));
    }
/**
     * @param args the command line arguments
     */
@param args the command line arguments
@param args the command line arguments
public static void main(String[] args) {
        int n = 10; int m = 10;
        int thesimax, thesimin;
        int my2DArray[][] = new int[n][m];
        int avgLine[];
        int avgCol[];
        fillPin(n, m, my2DArray);
        System.out.println("\nshowpin2d");
        showPin2D(n, m, my2DArray);
        avgLine = findMeanLine(n, m, my2DArray);
        avgCol = findMeanCol(n, m, my2DArray);
        System.out.println("\nshowpin1d avgline");
        showPin1D(avgLine);
        System.out.println("\nshowpin1d avgcol");
        showPin1D(avgCol);
        System.out.println("\ndiagonal sum: " + findDSum(n, m, my2DArray));
    }
public static void main ( String [ ] args ) { int n = 10 ; int m = 10 ; int thesimax , thesimin ; int my2DArray [ ] [ ] = new int [ n ] [ m ] ; int avgLine [ ] ; int avgCol [ ] ; fillPin ( n , m , my2DArray ) ; System . out . println ( "\nshowpin2d" ) ; showPin2D ( n , m , my2DArray ) ; avgLine = findMeanLine ( n , m , my2DArray ) ; avgCol = findMeanCol ( n , m , my2DArray ) ; System . out . println ( "\nshowpin1d avgline" ) ; showPin1D ( avgLine ) ; System . out . println ( "\nshowpin1d avgcol" ) ; showPin1D ( avgCol ) ; System . out . println ( "\ndiagonal sum: " + findDSum ( n , m , my2DArray ) ) ; }
@param args the command line arguments
@param args the command line arguments