I am trying to program a method in java that should return a map with the occurrences of strings inside a list. Here\'s an overview of what it should do:
1st section: