import java.util.*;

public class JavaForEachLoop {
    public static void main(String[] args) {
        int i = 0;
        while (i < 5) {
            System.out.println(i);
            i++;
        }
    }

    public static void doWhile() {
        int i = 0;
        do {
            System.out.println(i);
            i++;
        } while (i < 5);
    }

}
