Sobes.tech
Junior

Kā ar vienu rindu pārvērst ArrayList uz HashSet?

sobes.tech AI

Atbilde no AI

// Izveidot HashSet no ArrayList
HashSet<String> set = new HashSet<>(arrayList);