Here you can find the source of max(String left, String right)
private static String max(String left, String right)
//package com.java2s; //License from project: Open Source License public class Main { private static String max(String left, String right) { return left.compareTo(right) < 0 ? right : left; }//from w w w . j a v a 2 s .c o m }