hw/hw0/MaxOfArray.java
public static int max(int[] m) {
        int temp = m[0];
        for (int idx = 1; idx < m.length; idx++) {
        	if (m[idx] > temp) {
        		temp = m[idx];
        	}
        }
        return temp;
    }
/** Returns the maximum value from m. */
Returns the maximum value from m.
Returns the maximum value from m .
public static int max(int[] m) {
        int temp = m[0];
        for (int idx = 1; idx < m.length; idx++) {
        	if (m[idx] > temp) {
        		temp = m[idx];
        	}
        }
        return temp;
    }
public static int max ( int [ ] m ) { int temp = m [ 0 ] ; for ( int idx = 1 ; idx < m . length ; idx ++ ) { if ( m [ idx ] > temp ) { temp = m [ idx ] ; } } return temp ; }
Returns the maximum value from m.
Returns the maximum value from m .