# For and For-Each Loops

Loop through every name in an array, with an index or without one.

![Cheat sheet: For and For-Each Loops](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/41f24ffa8a374611b3e8c0bf40b0c4a2.webp)

- Category: Java
- Level: Novice
- Tags: java
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/looping-for-loop-cheat-sheet
