This code is designed to Sort given Strings based on the Scores and Tie Breaking Scores(In case of a Tie) which are stored in an Arraylist and the ArrayList is mapped to the strings in a HashMap. This code can be suitably modified for multiple tasks which include frequency sort based on simple frequency Map as well.
This code is designed to Sort given Strings based on the Scores and Tie Breaking Scores(In case of a Tie) which are stored in an Arraylist and the ArrayList is mapped to the strings in a HashMap. This code can be suitably modified for multiple tasks which include frequency sort based on simple frequency Map as well.