loops syntax in java code example Example: loops in java 1-For (for each) 2-While Loop 3-Do-While loop