3 ms·
Since Java doesn't have pass-by-ref, this would probably be just as awkward as try-catch.
by nollidge 14y ago
Since Java doesn't have pass-by-ref, this would probably be just as awkward as try-catch.
- suppressingfire 14y agoGuava's Hints.tryParse is about as good as it can get in Java... Maybe it could return an Optional instead of a nullable boxed type, but the calling code wouldn't be much different.