Java Tutorial Part 6: Loop Control

Loop Control

So there’s such a thing as loops in Java. Say you want to print something, like your name, twenty times. What will you do? Probably write twenty <code>System.out.println(“My name is John”);</code> statements. Or what if you want to print natural numbers up to one hundred? A hundred print statements? No, not at all.

Java offers a set of looping statements for our use. These looping statements perform any task that we wish for any number of times that we wish. There are three types of looping statements:

The ‘

Read the full story by


Macbook Problem: Can't See Pictures Sent to You in Messages? Ideas for using one iPad in the classroom
We are updating our Privacy Policy, so please make sure you take a minute to review it. As of May 25, 2018 your continued use of our services will be subject to this new Privacy Policy.
Review Privacy Policy OK