Back to questions
Junior
124
questionbank
Как можно одной строкой преобразовать ArrayList в HashSet?
Answer from AI
sobes.tech AI
// Создаем HashSet из ArrayList
HashSet<String> set = new HashSet<>(arrayList);