Here you can find the source of removeLowScore(int[] array)
public static int[] removeLowScore(int[] array)
//package com.java2s; //License from project: Open Source License import java.util.ArrayList; public class Main { public static int[] removeLowScore(int[] array) { int low = findLowPos(array); ArrayList<Integer> outList = new ArrayList<Integer>(); for (int i : array) if (i != low) outList.add(i);/*from w w w .j a va 2s . com*/ outList.trimToSize(); int[] outArray = new int[outList.size()]; for (int i = 0; i < outArray.length; i++) outArray[i] = outList.get(i); return outArray; } private static int findLowPos(int[] array) { int low = array[0]; for (int i : array) if (i < low) low = i; return low; } }