Java Practice It | Exercise 11.12: contains3 | collections, lists, sets and maps, hashmap

preview_player
Показать описание
More practice its:

Problem:

Question:
Write a method contains3 that accepts a List of strings as a parameter and returns true if any single string occurs at least 3 times in the list, and false otherwise. Use a map as auxiliary storage.