Junior
Comment convertir HashSet en ArrayList en une seule ligne?
sobes.tech IA
Réponse de l'IA
ArrayList<String> arrayList = new ArrayList<>(hashSet); // On suppose que hashSet est déjà initialisé
sobes.tech IA
Réponse de l'IA
ArrayList<String> arrayList = new ArrayList<>(hashSet); // On suppose que hashSet est déjà initialisé