// This program demonstrates a while loop public class While { public static void main (String [] args) { int n = 0; while (n < 5) { System.out.println("* "); n++; } } }