String wpu_no= "1"; String wpu_url= "2"; String wpu_pr_url="3"; String wpu_page_name="4"; String wpu_page_type="5"; HashMap map=new HashMap(); map.put("wpu_no",wpu_no); map.put("wpu_url",wpu_url); map.put("wpu_pr_url",wpu_pr_url); map.put("wpu_page_name",wpu_page_name); map.put("wpu_page_type",wpu_page_type); map.put("action","create"); Iterator ite = map.keySet().iterator(); while(ite.hasNext()){ String key = (String)ite.next(); // key System.out.println("-->"+key+"==>"+map.get(key)); }