Sorting algorithm source codes + ultimate test to compare the performance of all algorithms (packages eu.happycoders.sort.method and eu.happycoders.sort.demos), plus demo code for sorting arrays and lists with the JDK (packages eu.happycoders.sort.jdk.array and eu.happycoders.sort.jdk.list).
The demo classes have a main() method that prints the output shown in the article. They need Java 25, because they use the simplified main() method without String[] args.
The code belongs to this series of articles:
- Sorting Algorithms [Ultimate Guide]
- Insertion Sort – Algorithm, Source Code, Time Complexity
- Selection Sort – Algorithm, Source Code, Time Complexity
- Bubble Sort – Algorithm, Source Code, Time Complexity
- Quicksort – Algorithm, Source Code, Time Complexity
- Merge Sort – Algorithm, Source Code, Time Complexity
- Heapsort – Algorithm, Source Code, Time Complexity
- Counting Sort – Algorithm, Source Code, Time Complexity
- Radix Sort – Algorithm, Source Code, Time Complexity
- Sorting in Java: How to Sort an Array (package
eu.happycoders.sort.jdk.array) - How to Sort a List in Java (package
eu.happycoders.sort.jdk.list)
- Sortieralgorithmen [Ultimate Guide]
- Insertion Sort – Algorithmus, Quellcode, Zeitkomplexität
- Selection Sort – Algorithmus, Quellcode, Zeitkomplexität
- Bubble Sort – Algorithmus, Quellcode, Zeitkomplexität
- Quicksort – Algorithmus, Quellcode, Zeitkomplexität
- Mergesort – Algorithmus, Quellcode, Zeitkomplexität
- Heapsort – Algorithmus, Quellcode, Zeitkomplexität
- Counting Sort – Algorithmus, Quellcode, Zeitkomplexität
- Radix Sort – Algorithmus, Quellcode, Zeitkomplexität
- Sortieren in Java: Array sortieren (Package
eu.happycoders.sort.jdk.array) - Liste sortieren in Java (Package
eu.happycoders.sort.jdk.list)
With this free 1-page PDF cheat sheet, you'll always have the 7 most important complexity classes at a glance.
- Always choose the most efficient data structures and thus increase the performance of your applications.
- Be prepared for technical interviews and confidently present your algorithm knowledge.
- Become a sought-after problem solver and be known for systematically tackling complex problems.
👉 Download the free Big O Cheat Sheet
(Hier geht's zur deutschen Version → O-Notation Cheat Sheet)
Stay up-to-date with the latest Java features with this free PDF Cheat Sheet!
- Avoid lengthy research with this concise overview of all Java versions from Java 10 to Java 27.
- Discover the innovative features of each new Java version, summarized on a single page.
- Impress your team with your up-to-date knowledge of the latest Java version.
👉 Download the free Java Versions PDF
(Hier geht's zur deutschen Version → Java-Versionen PDF)
👉 Want to stay on top of modern Java? Sign up for the HappyCoders newsletter – Modern Java: new versions & features, performance, and JVM insights – once a month.
(Hier geht's zur deutschen Version → HappyCoders-Newsletter deutsch)
🇩🇪 An alle Java-Entwickler:innen, die durch fundierte Kenntnisse über Datenstrukturen besseren Code schreiben wollen
Trage dich jetzt unverbindlich auf die Warteliste von „Mastering Data Structures in Java“ ein, und erhalte das beste Angebot!


