반응형 데이터 가져오기1 [JAVA] List map에서 데이터 가져오기 List Map에서 데이터 가져오기 Map map = new HashMap(); List list = new ArrayList(); map.put("one", "1"); map.put("two", "2"); map.put("three", "3"); list.add(map); for(int i = 0; i < list.size(); i++){ System.out.println("list 사이즈 :" + i); System.out.println("list entrySet :" + list.get(i).entrySet()); for( Map.Entry elem : list.get(i).entrySet() ){ // list 각각 hashmap받아서 출력 if(elem.getValue() != null && e.. 2023. 4. 30. 이전 1 다음 반응형