Forums Register Login

HashMap in HashMap Doubts

+Pie Number of slices to send: Send
Hi all,

I'm using HashMap to store data in key/value pair: below is what I'm doing..



I want to get for the key 100 and 01, the value is Hello
and 100 and 02, the value is World..

How to achieve this..is there any api for this..or we have to use like StringTokenzier..?
+Pie Number of slices to send: Send
returns a HashMap, so just iterate through that the same way as you iterated thru h3.
+Pie Number of slices to send: Send
Do you mean somewhat like this?

+Pie Number of slices to send: Send
It's seems to be generics.. only supported in 1.5..? i am using i.4..?
+Pie Number of slices to send: Send
The logic will be the same though. 1.4 version:
+Pie Number of slices to send: Send
Thanks paul, Edwin and also neal..
+Pie Number of slices to send: Send
 


The logic will be the same though. 1.4 version:



Did you not miss the casting, Paul?

+Pie Number of slices to send: Send
Yup Teach me for just regexing out the generics syntax...
I am going down to the lab. Do NOT let anyone in. Not even this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1054 times.
Similar Threads
addHeader VS setHeader
String is not working as i supposed it to work
NullPointer Doubt.
how object.clone() is different then direct reference assignment
Problem in displaying data in JTable
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 06:17:35.