// Repeat something N times
// Author: Michael S. Branicky, 09/13/2007

public class RepeatN {
  public static void main (String args[]) {

    // declare variables
    int i, N;

    // N can be hard-coded, input by user, or calculated by program
    N = 100;

    i = 1;                         // initialization of counter
    while (i <= N) {               // test of counter
      // statement(s) to repeat
      System.out.println("Welcome to Java!");

      i = i + 1;                   // update of counter
    }

  }    
}
