Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4092707

A static String method to check for emptiness would be nice.

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.4
    • core-libs
    • x86
    • windows_nt



      Name: bk70084 Date: 11/13/97


      public static boolean isEmpty(String s) {
        return (s == null || s.length() == 0) ? true : false;
      }


      // how many times have you done this check?
      if (string == null || string.length() == 0) ...
      (Review ID: 19868)
      ======================================================================

            mmcclosksunw Michael Mccloskey (Inactive)
            bklocksunw Brian Klock (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: