3 ms·
> you are disallowed at the compiler level from modifying the contents of the collection you're iterating over This fails at runtime, not compile time for me:
by dehrmann 5y ago
> you are disallowed at the compiler level from modifying the contents of the collection you're iterating over
This fails at runtime, not compile time for me:
x.forEach(i -> x.add("a"));