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

public static boolean isEmpty ( String string ) { return string == null || string . length ( ) <= 0 ; }
check string is null or empty
