Sobes.tech
Junior

Ako previesť HashSet na ArrayList v jednom riadku?

sobes.tech AI

Odpoveď od AI

ArrayList<String> arrayList = new ArrayList<>(hashSet); // Predpokladá sa, že hashSet je už inicializovaný