0
Why are optimised for loops not discussed?
2 Réponses
+ 4
There is an enhanced for loop section in the course. Check out the Arrays module!
0
I think the OP meant some speed optimization regarding for loops. If that is the case, it is a subject way of out scope with respect to the level of a SoloLearn course. Anyway, just to get you started, two possible optimizations are loops unrolling ( http://stackoverflow.com/questions/2349211/when-if-ever-is-loop-unrolling-still-useful) and reverse loops ( https://www.mkyong.com/java/reverse-loop-versus-forward-loop-in-performance-java/). Check out also http://www.javaworld.com/article/2077647/build-ci-sdlc/make-java-fast--optimize-.html