/* Demonstrate using a while statement. * Program will output the numbers 1 - 20 */ import javax.swing.JOptionPane; class Loop1{ public static void main(String [] args){ final int HIGH = 20; int i = 1; while(i <= HIGH){ System.out.print(i + " "); i += 1; } System.out.println(); } }