+ 1
we cannot modify a list while iterating it. what if it is required to modify that how can i do that in java
i m making a program to sort an array.by program will run through every number and check if it is the biggest number and then remove that so i need to modify it while iterating.
2 ответов
+ 2
can't you just sort it and then remove the highest number?
you would then repeat the process.
+ 1
well what if we don't want to use any existing class.