For example I have hashMap which type is <String,Integer>
I call getKey from iterator, wanted to get String directly from the result.
But I found out that I have to call toString() to get a string type. Why is that?
Thanks.
For example I have hashMap which type is <String,Integer>
I call getKey from iterator, wanted to get String directly from the result.
But I found out that I have to call toString() to get a string type. Why is that?
Thanks.