Sobes.tech
Junior

Bir satırda ArrayList'i HashSet'e nasıl dönüştürebilirim?

sobes.tech yapay zeka

AI'dan gelen yanıt

// ArrayList'ten HashSet oluşturma
HashSet<String> set = new HashSet<>(arrayList);