Creating a custom Comparator function in Java allows you to define the rules for sorting or comparing objects based on specific criteria. This article will guide you through the steps of writing a custom Comparator
This article is follow up content to previous articles I've written about iterators and collections, but the benchmark results were NOT what I expected!
Iterators are an essential part of collections in Java, enabling you to traverse through data structures. Two primary types of iterators are fail-safe and fail-fast. Understanding their differences is crucial for writing robust code.
Lambda functions are a powerful feature introduced in Java 8 that revolutionize how you write and manage code. They allow for more concise and readable code, especially when dealing with functional interfaces.
In this article, I’d like to go over a couple of different approaches for an API and then explain why the yield keyword might be something you consider next time around.