// This program demonstrates a while loop

public class While {

    public static void main (String [] args) {
	int n = 0;
	while (n < 5) {
	    System.out.println("* ");

This is an example from CSci 1211 course.

The views and opinions expressed in this page are strictly those of the page author. The contents of this page have not been reviewed or approved by the University of Minnesota.