Unyime Udohunyimeudohdsa.hashnode.dev·Jan 1, 2024The comparator interface (practical application) #practicalJavaProblem statement Here I will start with a real world problem. Given a list of songs with the following details for each songs Song title Number of streams on Spotify Year of release You are expected to store the data in such a way that the user...10 likes#practicalJava
Unyime Udohunyimeudohdsa.hashnode.dev·Dec 19, 2023The comparable interface in Java ( Practical application )First of all, let's understand why the interface exists. In a typical sorting lecture where a student is introduced to a particular sorting algorithm, the data set that will be used will most likely be an array of integers. Example sort [ 2, 6, 1, 4,...10 likesProgramming Blogs