public static boolean isEmpty(CharSequence data){
  return data == null || data.length() == 0;
}

public static boolean isEmpty ( CharSequence data ) { return data == null || data . length ( ) == 0 ; }
check out if it is a empty data
