SyntaxFix
Write A Post
Hire A Developer
Questions
Just to show java 8's stance to remove null values.
String s = Optional.ofNullable(myString).orElse(""); if (s.trim().isEmpty()) { ... }
Makes sense if you can use Optional<String>.
Optional<String>