Java coding tips to sort ArrayList in increasing and decreasing Order. Order is controlled by Comparator and Comparable interfaces, there are also som http://java67.blogspot.com/2012/08/how-to-sort-arraylist-in-java-list.html
Sometime, you want to make your Collection class read only e.g. for sharing between two modules, functions or objects. Java API provides easy way to c http://java67.blogspot.com/2012/08/how-to-create-read-only-collection-in-java-example.html
Given String being widely used everywhere, we often need to convert it to different data types, e.g. You have retrieved String values from database an http://java67.blogspot.com/2012/08/how-to-create-enum-from-string-in-java.html
If you have to name two most popular collection classes then most programmers will say ArrayList and HashMap. Indeed they are the two pillars of Colle http://java67.blogspot.com/2012/08/difference-between-hashmap-and-ArrayList-in-Java.html
Though Both TreeMap and TreeSet has lot of similarity e.g. they maintains their elements in sorted order, they are completely different to each other http://java67.blogspot.com/2012/08/difference-between-treemap-and-treeset-java.html
Simple example to show, what are various way to iterate over ArrayList in Java, including Java 5 advanced foreach loop and by using Iterator. IMHO bes http://java67.blogspot.sg/2012/07/how-to-iterate-loop-traverse-list-java.html
We have different ways to iterate HashMap. Using keySet,entrySet by using Map.Entry we can do the iterations. as well as we can use for-each loops. http://javabynataraj.blogspot.in/2014/06/how-to-iterate-or-traverse-map-in-java.html
Every Java program make heavy use of Collection framework. Collection classes are used to store huge number of data or value objects e.g. Employee, Or http://java67.blogspot.sg/2012/07/sort-list-ascending-descending-order-set-arraylist.html
HashSet and TreeSet are the leaves of the same branch , in java words they both implements the Set interface. http://javahungry.blogspot.com/2014/03/difference-between-hashset-and-treeset-similarities...
The question hashmap vs concurrenthashmap is asked to check whether candidate has understanding of the concept concurrency . http://javahungry.blogspot.com/2014/02/hashmap-vs-concurrenthashmap-java-collections-inter...
Difference between ArrayList and Vector is the most common Core Java Interview question you will come across in Collection . This question is mostly http://javahungry.blogspot.com/2013/12/difference-between-arraylist-and-vector-in-java-col...
We all use ArrayList for different purpose, but how do we add data into ArrayList, by calling add() method. Well, there is a nice Java tip which allow http://javarevisited.blogspot.com/2012/12/how-to-initialize-list-with-array-in-java.html