Sobes.tech
Junior

Como converter HashSet em ArrayList numa única linha?

sobes.tech IA

Resposta da IA

ArrayList<String> arrayList = new ArrayList<>(hashSet); // Presume-se que hashSet já está inicializado