Hi guys. I'm trying to find a way of displaying a string that appears the most in my array-list of strings, (i.e. contains repeated entries). Also, if more than one string has a high appearance in the list, i.e. at least two strings have multiple entries (ties), both/all strings should be displayed. for example, if the string "John" appears as many times as the string, "Mike", both "John" and "Mike" should be displayed as the most popular names in the list, else, if only one of the strings gives the highest entry, only that string should be displayed. Is there a way I can do it without having to sort the list first?
Thanks :)