After splitting the below String separated with "/", in each string 1st 4 character is key of a map and rest is value, for example in "GOMN1Q", GOMN is key and 1Q is value, likewise in "SNIF4A25E8", SNIF is key and 4A25E8 is value.
/GOMN1Q/SNIF4A25E8/BOOKTQNN013A/RATE109.00/ROOMMSG1/RD1MSG11/RD2MSG12/CMUY/SMKN/BOOKTQNNN5GM/RATE114.00/ROOMMSG2/RD1MSG21/RD2MSG22/CMUY/CMUY/SMKN/BOOKTQNNB1KQ/RATE119.00/ROOMMSG3/RD1MSG31/RD2MSG32/CMUY/CMUY/SMKN
which is in below form,each
[GOMN:1Q
SNIF:4A25E8
k3: [BOOK:TQNN013A RATE:109.00 k4:[MSG1, MSG11, MSG12] CMUY:11 SMOK:N]
[BOOK:TQNNN5GM RATE:114.00 k4:[MSG2, MSG21, MSG22] CMUY:22 SMOK:N]
[BOOK:TQNNB1KQ RATE:119.00 k4:[MSG3, MSG31, MSG32] CMUY:33 SMOK:N]]
I am using map as LinkedHashMap as LinkedHashMap allow Null value and maintaining the insertion order. Please advise how to store after splitting the slash separated string. Thank you.