Code Smells: Deeply Nested Code


:star: :star:

Notes

  • Deeply nested code: double for loop with inner if statement. Yuck!
  • Solution: use Java 8 streams
  • Solution Better encapsulation
    • Extract inner loops to separate methods, etc.