News for hackers. Stuff that matters.
Re:Java is very fast, if you don’t create many objects by peter_lawrey on Thursday September 15, 2022 @12:08AM (#32846913)
Most Iterators should be placed on the stack anyway. If they are not and you have a random access collection like ArrayList you can use an index, but this is rarely needed. If you are going to change code, perhaps Stream(s) are a better choice, these are also placed on the stack most of the time.

There are no comments on this comment yet.