import java.util.*;

public class Main {
    public static void main(String[] args) {
        TreeMap<String, String> treeMap = new TreeMap<>();
        treeMap.put("2025-10-14T02:15:30", "A");
        treeMap.put("2025-10-24T02:15:30", "B");
        treeMap.put("2025-11-15T02:15:30", "C");
        treeMap.put("2025-12-15T02:15:30", "D");

        SortedMap<String, String> subMap = treeMap.subMap("2025-10-20T00:00:00", true, "2025-11-20T00:00:00", true);
        List<Map.Entry<String, String>> tempList = new ArrayList<>(subMap.entrySet());
        System.out.println("tempList = " + tempList);
        subMap.clear();
        System.out.println("tempList = " + tempList);
    }
}