본문 바로가기

JAVA/JSP

HashMap 예제

HashMap<Integer,Order> hcart = new HashMap<Integer,Order>();
  hcart=cartmgr.readCart();
  Iterator<Integer> iter = hcart.keySet().iterator();

while(iter.hasNext()){
    
     int no = iter.next();
     Order order = hcart.get(no);




}