Hi all,
I have a TreeMap with
String as its key and an array of objects as its value.the size of array varies with each key.
The output of the tMap.toString() willbe of the form,
{1-1=[], 1-2=[], 1-3=[], 1-4=[], 1-5=[], 1-6=[], 1-7=[], 1-8=[], 1-9=[], 1-10=[], 2-1=[], 2-2=[], 2-3=[], 2-4=[], 2-5=[], 2-6=[], 2-7=[]}
now comes the actual problem
i need to collect only those values(ie the arrays)from the treemap, whose key matches/contains "1-" structure.
PS:The data in treemap is huge.i have around 250 entries in the treemap.
i am kind of stuck here. pls help me out on this.
Any suggestions/help provided will be very much helpful.Thanks in advance