//Dennis Brantley
import javax.swing.*;
public class NumberGame
{
	public static void main(String[] args)
	{
	    int theNum=3;
	    boolean KeepGoing = true;
	    	while(KeepGoing)
	    	{
		String guess= JOptionPane.showInputDialog(null,   	                                 " Enter number between 1-10 ");
		int aGuess= Integer.parseInt(guess);
		if(aGuess > theNum)
			JOptionPane.showMessageDialog(null," Too High! ");
		else if(aGuess < theNum)
			JOptionPane.showMessageDialog(null,"Too Low! ");
		else if(aGuess == theNum)
			{
			JOptionPane.showMessageDialog(null, "Your Choice is Correct. ");
				KeepGoing = false;






	}
}

}
}