plain/semester_1/erg7_ask1/Erg7_Ask1.java
public static void main(String[] args) {
        int n = 10, index = (int)((n-2)*Math.random()), thesimax, thesimin;
        int pin[] = new int[n];
        fillPin(pin);
        showPin(pin);
        thesimax = findThesiMax(pin);
        thesimin = findThesiMin(pin);
        System.out.println("thesimax = " + thesimax + " " + "thesimin = " + thesimin);
        System.out.println("index: " + index);
        pin = swapPin(index, pin);
        showPin(pin);
    }
/**
     * @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, index = (int)((n-2)*Math.random()), thesimax, thesimin;
        int pin[] = new int[n];
        fillPin(pin);
        showPin(pin);
        thesimax = findThesiMax(pin);
        thesimin = findThesiMin(pin);
        System.out.println("thesimax = " + thesimax + " " + "thesimin = " + thesimin);
        System.out.println("index: " + index);
        pin = swapPin(index, pin);
        showPin(pin);
    }
public static void main ( String [ ] args ) { int n = 10 , index = ( int ) ( ( n - 2 ) * Math . random ( ) ) , thesimax , thesimin ; int pin [ ] = new int [ n ] ; fillPin ( pin ) ; showPin ( pin ) ; thesimax = findThesiMax ( pin ) ; thesimin = findThesiMin ( pin ) ; System . out . println ( "thesimax = " + thesimax + " " + "thesimin = " + thesimin ) ; System . out . println ( "index: " + index ) ; pin = swapPin ( index , pin ) ; showPin ( pin ) ; }
@param args the command line arguments
@param args the command line arguments