Do you know what happens while deleting an element within a forEach loop?
Will it work?
Will it throw an Exception?
Watch this Java Challenger and learn those concepts!
Get the code of the Java Challengers and run your own tests: https://javachallengers.com/code