Here you can find the source of max(String s)
public static String max(String s)
//package com.java2s; public class Main { /**//from w w w . ja va 2 s .c om * String promotion - returns either the given string or empty string (if given string is null). */ public static String max(String s) { return s == null ? "" : s; } }