import java.util.Scanner; // bring in Scanner class so we can use it public class For /** This class Introduces for Loop **/ { public static void main(String[] args) { /* general format of a for loop: for (initialization; boolean expr; update) { } */ for (int i=0; i<5; i++) { System.out.println("hello world"); } /********the following while loop is identical to above for loop. int num=0; while (num < 5) { System.out.println("hello world"); num++; }****************/ // let's write a for loop that iterates up until the value in // a variable int limit=10; for (int i=0; i