Forums Register Login

Convert String to Map

+Pie Number of slices to send: Send
Dear people, can anyone help me complete this program

here i have to split this whole String "a" into broken tokens like a=100,b=200,c=300 so have used split method and now have to seperate the key and values like key:a and value:100.But should not use StringTokenizer but can use any other collection like HashMap,HashTable....etc.I dont know how to add this string array here b[] to HashMap so that i can seperate key and value using Map.Entry.Please help me!
+Pie Number of slices to send: Send
Split the individual contents on = this time to get the key value pairs.
Drove my Chevy to the levee but the levee was dry. A wrung this tiny ad and it was still dry.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 11027 times.
Similar Threads
reading and seperating a text file
final variable question
HashMap in HashMap Doubts
A flatland puzzle
static variables values are not getting refreshed
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 01:24:07.