Explore thе Collеctions.sort() timе complеxity using Java Microbеnchmark Harnеss (JMH).
Search Results for: sorting
Ensuring Message Ordering in Kafka: Strategies and Configurations
Learn how to ensure that messages are sent and received in the same order with Kafka.
Representing Furthest Possible Date in Java
Learn how to represent the furthest possible date using the java.util.Date and java.lang.Long classes.
Using the Apache Commons Lang 3 for Comparing Objects in Java
Learn to compare objects using Apache Commons Lang 3.
Difference Between Arrays.sort() and Collections.sort()
Compare two Java’s commonly used sorting methods: Arrays.sort() and Collections.sort().
Sequenced Collections in Java 21
Learn about the new sequenced collections from the Java 21 release.
Understanding XSLT Processing in Java
A quick and practical guide to XSLT processing in Java.
Why There Is No Sorted List in Java?
A quick but comprehensive explanation of why there’s no SortedList in Java.
Remove Duplicate Values From HashMap in Java
Learn a few ways to remove duplicate values from a Java HashMap.
Scroll API in Spring Data JPA
A quick and practical guide to Scroll API in Spring Data JPA.
Pagination in Spring Webflux and Spring Data Reactive
A quick and practical guide to pagination in Spring Webflux and Spring Data Reactive.
Stateless Object in Java
Java requires all code to be in classes. Sometimes we may need to create an object with no state in order to help achieve a design pattern. We look at stateless objects and how they function.
Check if a String Has All Unique Characters in Java
A quick and practical guide to checking if a String has all unique characters in Java.
The Vector API in Java 19
Explore the Vector API, its associated terminologies, and how to leverage it.
Sort Date Strings in Java
Explore different approaches to effectively sorting date strings in Java.
Converting List to Page Using Spring Data JPA
Learn how to convert a List into a Page using Spring Data JPA.
Scoped Values in Java 20
Scoped values is a new API in Java 20 that enables developers to store and share immutable data within and across threads. We look at how to use it and how it works.
Find the Index of an Element in a Java Array
Learn various methods for finding the index of an array element using both Java’s built-in APIs and a third-party library.
Generating Time Based UUIDs
Java has a built in UUID generator. We compare this to some other solutions which can be more secure or performant.
UUID vs. Sequential ID as Primary Key
A comparison between sequential IDs and UUIDs used as primary keys.