5 ms·
12 years in the making. In Java 8: java.util.Strings.isBlank(string) -- returns true if the string is null or "", else returns false. Its wishful thinking ho
by GrandMasterBirt 17y ago
12 years in the making.
In Java 8:
java.util.Strings.isBlank(string) -- returns true if the string is null or "", else returns false.
Its wishful thinking hoping for this in Java 7... So I'll just lower some standards.
- arethuza 17y agoWhere do you get 12 from - I've used Java from early in '95 so I'd make it at least 15. Can't stand it these days.
- jcromartie 17y agoThese days I just treat Java like C. It has a relatively small syntax and small feature set, but it has a relatively large set of libraries available (built in and otherwise). The language itself just isn't that interesting. It's what people are building with it (like Clojure, or Scala, or Hadoop, or Processing) that are interesting.
- mahmud 17y agoThese days? Steele's "The Java Programming Language" is where I learned Java first, and I don't think I have read another book, spec, or library documentation for java after that. Java as "C with OOP, Unicode, Exception handling and Threads" is really an excellent language. I write one small java app every 4 years and that subset of it served me well.
- Spreadsheet 17y agoJava 8?
- skybrian 17y agoIt seems like isBlank() would mean null or empty or all whitespace?