Here you can find the source of getMaxListStringFromList(List
public static String getMaxListStringFromList(List<String> days)
//package com.java2s; //License from project: Open Source License import java.util.List; public class Main { public static String getMaxListStringFromList(List<String> days) { String theDay = null;/*from ww w .j a va 2 s . com*/ for (String day : days) { if (theDay == null || day.compareTo(theDay) > 0) { theDay = day; } } return theDay; } }