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)
======================================================================
- duplicates
-
JDK-4120694 StringBuffer should have more functionality
-
- Closed
-
A static String method to check for emptiness would be nice.
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)
======================================================================
- duplicates
-
JDK-4120694 StringBuffer should have more functionality
-
- Closed
-