plain/semester_1/erg10_ask6/Erg10_Ask6.java
public static void main(String[] args) {
        int i, n=5, oY, eP;
        double bM;
        
        Ypallhlos pinYp[] = new Ypallhlos [n];
        for ( i=0; i<pinYp.length; i++ ) {
            oY = (int)(Math.random() * 40);
            eP = (int)(Math.random() * 5);
            bM = (int)(20000 + Math.random() * 30001);
            pinYp[i] = new Ypallhlos(oY, eP, bM);
            //System.out.println(pinYp[i]);
        }
        System.out.println(staticMethods.findMaxSalaryAll(pinYp));
        staticMethods.setTelikosMisthosAll(pinYp);
    }
/**
     * @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 i, n=5, oY, eP;
        double bM;
        Ypallhlos pinYp[] = new Ypallhlos [n];
        for ( i=0; i<pinYp.length; i++ ) {
            oY = (int)(Math.random() * 40);
            eP = (int)(Math.random() * 5);
            bM = (int)(20000 + Math.random() * 30001);
            pinYp[i] = new Ypallhlos(oY, eP, bM);
        }
        System.out.println(staticMethods.findMaxSalaryAll(pinYp));
        staticMethods.setTelikosMisthosAll(pinYp);
    }
public static void main ( String [ ] args ) { int i , n = 5 , oY , eP ; double bM ; Ypallhlos pinYp [ ] = new Ypallhlos [ n ] ; for ( i = 0 ; i < pinYp . length ; i ++ ) { oY = ( int ) ( Math . random ( ) * 40 ) ; eP = ( int ) ( Math . random ( ) * 5 ) ; bM = ( int ) ( 20000 + Math . random ( ) * 30001 ) ; pinYp [ i ] = new Ypallhlos ( oY , eP , bM ) ; } System . out . println ( staticMethods . findMaxSalaryAll ( pinYp ) ) ; staticMethods . setTelikosMisthosAll ( pinYp ) ; }
@param args the command line arguments
@param args the command line arguments
//System.out.println(pinYp[i]);