JAVA Collections Tutorials

Tutorials Shared by the Internet Community

Advertisements

  Top Tutorials     New Tutorials     Submit     Login     Register  


Found 50 Tutorials

gap line

Most Recent Tutorials


  • 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/
    • 20006 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/
    • 19595 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/
    • 14664 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/
    • 14372 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...
    • 10084 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
    • 7942 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...
    • 26755 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
    • 28352 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-...
    • 16055 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...
    • 16980 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...
    • 19667 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
    • 16750 Hits
    • RatingTutorials RatingTutorials RatingTutorials RatingTutorials RatingTutorials Rating

  • How to create read only Collection in Java with Example

    Read only collection means any collection which once created can not be modified i.e. you can not add new elements, you can not remove elements and ev
    http://javarevisited.blogspot.com/2012/07/create-read-only-list-map-set-example-java.html
    • 15686 Hits
    • RatingTutorials RatingTutorials RatingTutorials RatingTutorials RatingTutorials Rating

  • What is different on List and Set in Java Collection

    Main difference between Set and List is that Set does not allow any duplicates and only store unique objects while List allow duplicates. Another diff
    http://javarevisited.blogspot.com/2012/04/difference-between-list-and-set-in-java.html
    • 15635 Hits
    • RatingTutorials RatingTutorials RatingTutorials RatingTutorials RatingTutorials Rating

  • finding duplicates in a Array , file

    The following tutorial covers How to find and remove duplicates in array , file , line of text
    http://www.techlabs4u.com/2012/04/java-to-find-print-duplicates-using-or.html
    • 17501 Hits
    • RatingTutorials RatingTutorials RatingTutorials RatingTutorials RatingTutorials Rating

  • How to change ArrayList to HashSet in Java Example

    Quick way to convert ArrayList to Set in java with simple example , though its worth noting that all those method will eat duplicates silently and siz
    http://javarevisited.blogspot.com/2012/01/convert-arraylist-to-set-java-example.html
    • 15066 Hits
    • RatingTutorials RatingTutorials RatingTutorials RatingTutorials RatingTutorials Rating

  • How to create anonymous string array in Java Example

    Anonymous array are good to implement variable argument methods and they are used for that purpose prior to jdk5 introduced varargs.
    http://javarevisited.blogspot.com/2012/01/anonymous-array-example-java-create.html
    • 15705 Hits
    • RatingTutorials RatingTutorials RatingTutorials RatingTutorials RatingTutorials Rating

  • Java TreeMap Example in Java

    TreeMap in Java is the best solution for Java programs which are looking for sorted datastrucutre. TreeMap in Java sort keys based on either their nat
    http://javarevisited.blogspot.com/2011/12/treemap-java-tutorial-example-program.html
    • 14640 Hits
    • RatingTutorials RatingTutorials RatingTutorials RatingTutorials RatingTutorials Rating

  • Interview questions asked in Java Collections

    Java collection interview questions are core part of any java interview. Collection interview consists question on various collection classes like has
    http://javarevisited.blogspot.com/2011/11/collection-interview-questions-answers.html
    • 15451 Hits
    • RatingTutorials RatingTutorials RatingTutorials RatingTutorials RatingTutorials Rating



Advertisements