You get an integer object, which is a value of Your Map.
String is always a Key in this example.

m.get each time returns value.
The smart way of counting numers of strings is dynamically changing
the value of key.

Regards
Pacior

On Aug 13, 2:55 am, JKid314159 <[email protected]> wrote:

>             Integer freq = (Integer) m.get(name[i]);
> //m.get(name[i]); returns a string object which is cast to an Integer object.
> Not too sure what is going on here.


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to