Java: How to Tell If an Object in One List Is Also in Another List
Time to learn about disjoint().
Java: How to Convert a List to a Map
Same data. Different look.
Jackson Deserialization: How to Convert a JSON Array to a Java List or Array
Sometimes you need a List. Sometimes you need an array.
Java Streams: How to Sort Your Elements
Need to sort elements in a Stream sequence? That's the easiest thing in the world to do.
Java Streams: Eliminate Duplicates in Your List With distinct()
Need to trim the fat from your List? Gotta get rid of some unwanted duplicate elements? If so, then have a look at the distinct() method on Stream.
Java Streams: How to Use map() to Transform Your Data Into Meaningful Insights
Raw data doesn't do management any good. They need the numbers transformed into something readable and meaningful.
Java Streams: Get Just the Objects You're Looking for With filter()
Sometimes you end up with a List object that you need to whittle down to fewer elements. One way you can do that is with a Java Stream and the filter() method.
Java Streams: Grab Just a Sampling of Objects With limit()
If you want to take a look a small sample of objects in a Stream sequence, feel free to use the limit() method.
Java Streams: How to Implement Pagination With skip() and limit()
Need to turn your monstrously large Java Stream into a paginated List? If so, I've got you covered.
Java Streams: Identify Any Matching Characteristics in a List with anyMatch()
Want to know if any object in your list matches a specific criteria? If so, then turn that List into a Stream and use anyMatch().
Terms of Service