반응형 #list #stdmap #stlmap #restapi #dartlist #convertlisttomap #arraylist #c++stlmap #listmethod #c++stlmaps #dartconvertlisttomap #listmethods1 List와 Map, 백준 10807번 1707번, 스택 과 큐 , 이진트리 List와 Map, 백준 10807번 1707번, 스택 과 큐 , 이진트리 List와 Map 코드로 이해하기 import java.util.*; public class Main { public static void main(String[] args) { // ArrayList 생성 및 추가 List list = new ArrayList(); list.add("Apple"); list.add("Banana"); System.out.println(list); // HashMap 생성 및 추가 Map map = new HashMap(); map.put("Alice", 24); map.put("Bob", 27); // Alice의 나이 출력 System.out.println(map.get("Alice")); }.. 2023. 9. 5. 이전 1 다음 반응형