// first while loop public class first_while_loop { public static void main( String args[] ) { int counter = 1; while (counter <= 10) { System.out.println("This statement is repeated. This time is # " + counter); counter++; } System.exit( 0 ); // terminate application } // end main } // end of program