public static boolean isEmpty(final String s){
  return (s == null || s.length() == 0);
}

public static boolean isEmpty ( final String s ) { return ( s == null || s . length ( ) == 0 ) ; }
determines if the string is empty .
