Here you can find the source of printMapObject(Map, ?> mapobject)
Parameter | Description |
---|---|
mapobject | a parameter |
public static void printMapObject(Map<?, ?> mapobject)
//package com.java2s; import java.util.Iterator; import java.util.Map; public class Main { /**//from w ww . j a v a 2 s . c o m * @param mapobject */ public static void printMapObject(Map<?, ?> mapobject) { Iterator<?> iter = mapobject.keySet().iterator(); while (iter.hasNext()) { Object keyobj = iter.next(); Object valobj = mapobject.get(keyobj); System.out.println(keyobj + ": " + valobj); } } }