Here you can find the source of findMaxValue(int[] array)
public static int findMaxValue(int[] array)
//package com.java2s; //License from project: Apache License public class Main { public static int findMaxValue(int[] array) { return array[findMaxIndex(array)]; }/*from ww w . j a va2 s . co m*/ public static int findMaxIndex(final int[] array) { int maxIndex = 0; for (int i = 1; i < array.length; i++) { if (array[maxIndex] < array[i]) { maxIndex = i; } } return maxIndex; } }