Here you can find the source of getMaxOfArrayListInteger(List
public static int getMaxOfArrayListInteger(List<Integer> integerList)
//package com.java2s; //License from project: LGPL import java.util.Collections; import java.util.List; public class Main { public static int getMaxOfArrayListInteger(List<Integer> integerList) { Collections.sort(integerList); return integerList.get(integerList.size() - 1); }/*from ww w . j a v a 2s . c o m*/ }