public static boolean isEmpty(String string){
  if (null == string)   return true;
  return string.equals(EMPTY);
}

public static boolean isEmpty ( String string ) { if ( null == string ) return true ; return string . equals ( EMPTY ) ; }
check if the given string is empty or null
