Junior
Kako pretvoriti HashSet u ArrayList u jednom redu?
sobes.tech АИ
Одговор од АИ
ArrayList<String> arrayList = new ArrayList<>(hashSet); // Pretpostavlja se da je hashSet već inicijalizovan
sobes.tech АИ
Одговор од АИ
ArrayList<String> arrayList = new ArrayList<>(hashSet); // Pretpostavlja se da je hashSet već inicijalizovan