List<Map<String, Object>>에 item 추가하기
new를 사용import java.util.ArrayList;import java.util.HashMap;import java.util.List;import java.util.Map;public class Main { public static void main(String[] args) { // Initialize the list List> list = new ArrayList(); // Create a new map Map item = new HashMap(); item.put("key1", "value1"); item.put("key2", 123); // You can add any type of object here ..
2024.11.12