Here you can find the source of min(byte[] arr)
public static byte min(byte[] arr)
//package com.java2s; //License from project: Open Source License public class Main { public static byte min(byte[] arr) { byte minValue = Byte.MAX_VALUE; for (byte value : arr) { if (value < minValue) { minValue = value;/*from w w w . j a v a 2s .c o m*/ } } return minValue; } public static short min(short[] arr) { short minValue = Short.MAX_VALUE; for (short value : arr) { if (value < minValue) { minValue = value; } } return minValue; } }