Here you can find the source of max(int[] as)
public static int max(int[] as)
//package com.java2s; //License from project: Open Source License public class Main { public static int max(int[] as) { int result = -1; for (int a : as) { result = Math.max(result, a); }/*from w w w . j a va 2s. c o m*/ return result; } }