public class Main
{
  public static boolean isEmpty(String s)
  {
    if ((s != null) && (s.trim().length() > 0))
        return false;
    else
        return true;
  }

 public static boolean isBlank(String str) {
    int strLen;
    if (str == null || (strLen = str.length()) == 0) {
        return true;
    }
    for (int i = 0; i < strLen; i++) {
        if ((Character.isWhitespace(str.charAt(i)) == false)) {
            return false;
        }
    }
    return true;
}

  public static void main(String[] args)
  {
      for (char c = 0; c < 65535; c++)
      {
         String cs = ""+c;
         if (isBlank(cs) != isEmpty(cs))
            System.out.println("For character "+(int)c+" isBlank = "+isBlank(cs)+" and isEmpty = "+isEmpty(cs));
      }
  }
}