Загрузка данных


import java.util.List;

class Scratch {
    public static void main(String[] args) {
        new C().f(List.of("1"));
    }
}


class C {
    void f(List<String> l) {
        System.out.println("List of strings");
    }

    void f(List<Integer> l) {
        System.out.println("List of integers");
    }
}