Sobes.tech
Junior
93
questionbank

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

Ответ от нейросети

sobes.tech AI

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