Hashmap get function returns null
问题 I have a hashmap which is public HashMap<String, ArrayList<Integer>> invertedList; I show you my invertedList in watch list during debugging: invertedList.toString(): "{ryerson=[0, 2, 3], 23=[3], award=[1], andisheh=[0, 2]}" In the same watch list when I enter: invertedList.get("ryerson") I get null as result, also in the code. As you can see "ryerson" is already there as a key in my invertedList and I should get [0, 2, 3] as a result!!! What is happening here? I'm so confused! I know there