I am programming a mastermind game in java.I have an ArrayList called “checked” and as I check through the users guess, the words “black”, “white” and “blank” are added to the arrayList. Is there anyway for me to sort the checked array at the end in order of importance, e.g. first “black”, then “white”, and then “blank”?
2