The java.lang.String class would benefit from a couple of very simple convenience methods that capture two very common use cases: boolean isEmpty() { return length() == 0; } boolean contains(String s) { return indexOf(s) >= 0; } ###@###.### 11/2/04 00:10 GMT
|