JAVA Collections Tutorials

Tutorials Shared by the Internet Community

Advertisements
  Top Tutorials     New Tutorials     Submit     Login     Register  


Found 56 Tutorials

gap line

Most Recent Tutorials


  • ArrayList Loop Example in Java

    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
    • 27497 Hits
    • RatingTutorials RatingTutorials RatingTutorials RatingTutorials RatingTutorials Rating

  • Different ways to iterate HasMap

    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
    • 27472 Hits
    • RatingTutorials RatingTutorials RatingTutorials RatingTutorials RatingTutorials Rating

  • How to Sort Collection in Java in descending Order

    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
    • 27247 Hits
    • RatingTutorials RatingTutorials RatingTutorials RatingTutorials RatingTutorials Rating

  • HashSet vs TreeSet

    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...
    • 27171 Hits
    • RatingTutorials RatingTutorials RatingTutorials RatingTutorials RatingTutorials Rating

  • Difference between HashMap and Hashtable

    Difference between HashMap and Hashtable is one of the most popular java interview questions.
    http://javahungry.blogspot.com/2014/03/hashmap-vs-hashtable-difference-with-example-java-i...
    • 27192 Hits
    • RatingTutorials RatingTutorials RatingTutorials RatingTutorials RatingTutorials Rating

  • Hashmap vs ConcurrentHashMap:Collection interview Ques

    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...
    • 27367 Hits
    • RatingTutorials RatingTutorials RatingTutorials RatingTutorials RatingTutorials Rating

  • How to loop ArrayList in Java

    Multiple ways to loop or iterate ArrayList in Java
    http://beginnersbook.com/2013/12/how-to-loop-arraylist-in-java/
    • 27155 Hits
    • RatingTutorials RatingTutorials RatingTutorials RatingTutorials RatingTutorials Rating

  • How to trim the size of the ArrayList

    Java: How to trim the unused space allocated to the ArrayList
    http://beginnersbook.com/2013/12/java-arraylist-trimtosize-method-example/
    • 27173 Hits
    • RatingTutorials RatingTutorials RatingTutorials RatingTutorials RatingTutorials Rating

  • How to Serialize Map in Java

    Learn how to serialize a HashMap in Java
    http://beginnersbook.com/2013/12/how-to-serialize-hashmap-in-java/
    • 27181 Hits
    • RatingTutorials RatingTutorials RatingTutorials RatingTutorials RatingTutorials Rating

  • How to synchronize map in java

    Learn how to synchronize the Map in Java
    http://beginnersbook.com/2013/12/how-to-synchronize-hashmap-in-java-with-example/
    • 27159 Hits
    • RatingTutorials RatingTutorials RatingTutorials RatingTutorials RatingTutorials Rating

  • ArrayList vs Vector : Collection Interview question

    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...
    • 27241 Hits
    • RatingTutorials RatingTutorials RatingTutorials RatingTutorials RatingTutorials Rating

  • Java Tip to Initialize ArrayList in One Line

    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
    • 27157 Hits
    • RatingTutorials RatingTutorials RatingTutorials RatingTutorials RatingTutorials Rating

  • How to avoid duplicate objects in Java List - Example

    Though we can use Set as duplicate free Collection, some time we need to remove duplicates from ArrayList may be due to legacy code, or code inside an
    http://javarevisited.blogspot.com/2012/12/how-to-remove-duplicates-elements-from-ArrayList...
    • 27403 Hits
    • RatingTutorials RatingTutorials RatingTutorials RatingTutorials RatingTutorials Rating

  • Sorting Map by value and key in Java - ascending

    Unlike List and Sort, sorting Map implementations like HashMap and Hashtable is not easy. There are two ways to sort HashMap, either by key or by valu
    http://javarevisited.blogspot.com/2012/12/how-to-sort-hashmap-java-by-key-and-value.html
    • 27361 Hits
    • RatingTutorials RatingTutorials RatingTutorials RatingTutorials RatingTutorials Rating

  • Finding common objects in two Set with example

    Set interface in Java is used to store unique elements, they restrict duplicates, but how do you find common elements between two set e.g. intersectio
    http://javarevisited.blogspot.com/2012/12/union-and-intersection-of-two-set-in-java-guava-...
    • 27161 Hits
    • RatingTutorials RatingTutorials RatingTutorials RatingTutorials RatingTutorials Rating

  • BlockingQueue Example in Java Concurrency

    BlockingQueue in Java is introduced as part of java.util.concurrent package in Java 5. BlockingQueue implements Queue interface, which is also added o
    http://javarevisited.blogspot.com/2012/12/blocking-queue-in-java-example-ArrayBlockingQueu...
    • 27285 Hits
    • RatingTutorials RatingTutorials RatingTutorials RatingTutorials RatingTutorials Rating

  • HashSet vs TreeSet vs LinkedHashSet vs EnumSet in Java

    Set has several implementation in Java Collection Framework e.g. EnumSet, HashSet, TreeSet, LinkedHashSet, and CopyOnWriteArraySet, this article compa
    http://javarevisited.blogspot.com/2012/11/difference-between-treeset-hashset-vs-linkedhash...
    • 27293 Hits
    • RatingTutorials RatingTutorials RatingTutorials RatingTutorials RatingTutorials Rating

  • Searching in Array in Java Program Example

    Unlike Collection classes, array does not provide any contains() method to search an object in array, only way to search in array is to loop through a
    http://javarevisited.blogspot.com/2012/11/4-ways-to-search-object-in-java-array-example.html
    • 27174 Hits
    • RatingTutorials RatingTutorials RatingTutorials RatingTutorials RatingTutorials Rating



Advertisements