Java List Max getMaxListStringFromList(List days)

Here you can find the source of getMaxListStringFromList(List days)

Description

get Max List String From List

License

Open Source License

Declaration

public static String getMaxListStringFromList(List<String> days) 

Method Source Code

//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;
    }
}

Related

  1. getMaxGYS(List values)
  2. getMaxId(List ids)
  3. getMaximums(List data)
  4. getMaxLength(List values)
  5. getMaxLineWidth(final List str)
  6. getMaxOf(final List list)
  7. getMaxOfAList(List list)
  8. getMaxSize(final List list)
  9. getMaxStrWidth(List list)