The FFM API makes accessing C libraries convenient but also presents challenges. Helper functions and best practices make it ...
One of the nasty little traps a Java developer can run into occurs when Collection.contains(Object) is not used with appropriate understanding. I demonstrate this potential trap in this post. This is ...
Amazon Web Services Inc. (AWS) yesterday announced that cloud developers can now use Java for writing Lambda functions, which provide event-driven functionality while taking care of needed compute ...
A monthly overview of things you need to know as an architect or aspiring architect. Unlock the full InfoQ experience by logging in! Stay updated with your favorite authors and topics, engage with ...
Rewrite object-oriented code using functional techniques. Get started with lambdas, method references, functional interfaces, and the Streams API in Java Welcome back to this two-part tutorial ...
A monthly overview of things you need to know as an architect or aspiring architect. Unlock the full InfoQ experience by logging in! Stay updated with your favorite authors and topics, engage with ...
It's not terribly clean, but you could use indexOf() and check if it returns -1. Better than breaking out a loop.