Код: Выделить всё
Set squareNums = new HashSet();
for (int i = 1; i * i
Подробнее здесь: [url]https://stackoverflow.com/questions/78697065/understanding-differences-in-output-using-hashset-vs-arraylist-for-storing-squar[/url]Код: Выделить всё
Set squareNums = new HashSet();
for (int i = 1; i * i
Подробнее здесь: [url]https://stackoverflow.com/questions/78697065/understanding-differences-in-output-using-hashset-vs-arraylist-for-storing-squar[/url]