Sobes.tech
Junior
160

Как можно одной строкой преобразовать ArrayList в HashSet?

AI-дан жауап

sobes.tech AI

// Создаем HashSet из ArrayList
HashSet<String> set = new HashSet<>(arrayList);