import java.swing.JOptionPane; import javax.swing.*; public class Sequence{ public static void main (String args[]){ String inputInteger; int inputInt; int correct; int incorrect; //int tries=0; inputInt = Integer.parseInt (JOptionPane.showInputDialog ("Enter an even integer")); for(int tries = 0; tries < 10; tries++; ){ while(inputInt % 2 == 0){ correct++; } incorrect--; } /* while (inputInt%2==0){ tries += 10; inputInt = Integer.parseInt (JOptionPane.showInputDialog ("Enter the next consecutive even integer")); }*/