Hi. Frankly speaking, I am not sure in this solution: try interface SortedMap - it has method subMap - see API Doc for details:
Returns a view of the portion of this map whose keys range from fromKey, inclusive, to toKey, exclusive. (If fromKey and toKey are equal, the returned map is empty.) The returned map is backed by this map, so changes in the returned map are reflected in this map, and vice-versa. The returned map supports all optional map operations that this map supports. Kind regards, Roman. 2012/1/7 ABHISHEK TRIPATHI <[email protected]> > Hey Dev, > > I'm facing probem with the Hashmap, can you please help on this ? > > HashMap: > > Key= collection of Student Names( A,B,C,D,A,D,Q) > > Values= Marks (ex. 88,34,53,12,44,56,78,87,54) > Can you please advise best way to get all the Students who have marks > between 55 to 65? > > thanks, > Ami > > -- > You received this message because you are subscribed to the Google Groups > "JPassion.com: Java Programming" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/jpassion_java?hl=en. > -- You received this message because you are subscribed to the Google Groups "JPassion.com: Java Programming" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jpassion_java?hl=en.
