I made the map which key is movie id and value is genres as String type from movies.dat.
Based on that map, I made new nested map which has genres, occupation and rating.
When input process of genre occur, the program check if there is string which contain input value or not.
From this, bug occur and It is a bug that appears by implementing the source code as including, not matching.
For example, "adventure" or "romance" contain "a", so error don't occurs and all kinds of genres, including "a", are counted.
I made the map which key is movie id and value is genres as String type from movies.dat. Based on that map, I made new nested map which has genres, occupation and rating. When input process of genre occur, the program check if there is string which contain input value or not.
From this, bug occur and It is a bug that appears by implementing the source code as including, not matching. For example, "adventure" or "romance" contain "a", so error don't occurs and all kinds of genres, including "a", are counted.
If there is good solution, let me know.