This post originated from an RSS feed registered with Java Buzz
by Ram N.
Original Post: Java : Collection Framework : TreeMap (SubMap)
Feed Title: JAVA EE
Feed URL: http://ramj2ee.blogspot.com/feeds/posts/default?alt=rss
Feed Description: This blog has viedo tutorials and Sample codes related to below Technologies.
1.J2EE
2.Java
3.Spring
4.Hibernate
5.Database
6.Oracle
7.Mysql
8.Design Patterns
/* * 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. * * Equivalent to subMap(fromKey, true, toKey, false). */ SortedMap<Integer, String> sortedMap = treeMap.subMap(10, 40);