Java Map Print printHash(HashMap hashMap)

Here you can find the source of printHash(HashMap hashMap)

Description

print Hash

License

Apache License

Declaration

public static void printHash(HashMap<?, ?> hashMap) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.util.*;

public class Main {
    public static void printHash(HashMap<?, ?> hashMap) {
        Set<?> s = hashMap.entrySet();
        Iterator<?> it = s.iterator();
        while (it.hasNext()) {
            Map.Entry m = (Map.Entry) it.next();
            System.out.println(m.getKey() + "\t" + m.getValue());
        }// www.j a  va  2s  .  c om
    }
}

Related

  1. printHash(HashMap hashMap)
  2. printHashMap(String lt, HashMap map, String rt, int maxparm)
  3. printHeaders(Map> headers)
  4. printHttpMessage(String statusLine, Map headers)