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