Iterating over List: Basic to Advance to Stream API

how you can iterate over a List, be it ArrayList, LinkedList or any other. Basic loop…