Here you can find the source of min(String s)
public static String min(String s)
//package com.java2s; public class Main { /**/*from w w w . ja v a 2 s . c o m*/ * String demotion - returns either the given string or null (if given string length is zero). */ public static String min(String s) { return s != null && s.length() == 0 ? null : s; } /** * Returns the length of given string (supports null). */ public static int length(CharSequence aString) { return aString == null ? 0 : aString.length(); } }