Here you can find the source of minValue(int[] values)
private static int minValue(int[] values)
//package com.java2s; //License from project: Apache License public class Main { private static int minValue(int[] values) { int min = 255; for (int i = 0; i < values.length; i++) { if (values[i] < min && values[i] != 0) { min = values[i];//w w w. j a v a 2s . c om } } return min; } }