EffectiveJava

Item 42: Prefer Lambdas to Anonymous Classes
📌 .

Item 57: Minimize the scope of local Variables.
📌 The most powerful technique for minimizing the scope of a local variable is to declare it where it is first used.
📌 Nearly every local variable declaration should contain an initializer.
📌 Prefer for loops to while loops.
📌 Preferred idiom for iterating over a collection or array.
📌 keep methods small and focused.

Item 58: Prefer for-each loops to traditional for loops
📌