![]() The program given below will show you how to solve such situation. What I need to convert that colon separated key values to individual integer and then convert them or stored them on Vector. I used two (2) integer type data, separated with colon, as the key value of my HashMap. But the problem I have faced is to convert the Key value set to Vector or String. In my last post I have shown How to show Java HashMap Key value pair and work on it. Recently, I have faced a problem while coding on java HashMap key value set on my job. Here is the list of tutorials published on HashMap class.After a long time I am sharing a post related to Java Programming language. Key is: 12 & Value is: Chaitanya HashMap Tutorials ("Key is: "+mentry2.getKey() + " & Value is: ") Map.Entry mentry2 = (Map.Entry)iterator2.next() ("key is: "+ mentry.getKey() + " & Value is: ") Map.Entry mentry = (Map.Entry)iterator.next() In this example we have demonstrated almost all the important methods of HashMap class. HashMap Example to demonstrate various methods
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |