4 ms·
Ad 2: Things evolve. If you stopped somwhere in the mid 90, you won't notice. But in Java 8 you can do null checking easily using Optional. Your example would b
by haddr 12y ago
Ad 2: Things evolve. If you stopped somwhere in the mid 90, you won't notice. But in Java 8 you can do null checking easily using Optional. Your example would be:
String address = a.map(A::b).map(B::c).map(C::d).orElse("UNKNOWN");
- x0x0 12y agoI find that quite wordy, but thank you