/**
 * @file ColectionsDemo.java
 * @author Valery Samovich
 * @version 1.0.0
 * @date 08/20/2014
 */

package com.valerysamovich.java.advance.collections.interfaces.map;

import java.util.HashMap;
import java.util.Map;

/**
 * Class cCollectionsDemo
 *
 */
public class CollectionsDemo {

    /**
     * Main method
     * @param args
     */
    public static void main(String[] args) {
        
        Map m1 = new HashMap();
        m1.put("Zara", "8");
        m1.put("Mahnaz", "31");
        m1.put("Ayan", "12");
        m1.put("Daisy", "14");
        
        System.out.println();
        System.out.println("Map Elements");
        System.out.println("\t" + m1);

    }

}

@@ -403,31 +403,90 @@
     
-Map m1 = new HashMap();
+// Create the map%0A        Map m1 = new HashMap();%0A        // Add values to the map
 %0A   
@@ -605,32 +605,61 @@
 %2214%22);%0A        %0A
+        // Print the results%0A
         System.o
@@ -712,24 +712,24 @@
 Elements%22);%0A
-
         Syst
@@ -754,16 +754,102 @@
 %22 + m1);
+%0A        %0A        // Return the size of the map%0A        System.out.println(m1.size());
 %0A%0A    %7D%0A

Add JavaDoc