import java.util.* ; public class while4 { public static void main( String args[] ) { int x1=0, number=0 ; final int UPPER = 10 ; final int LOWER = 1 ; System.out.println( "Enter a value between 1 and 10" ) ; Scanner scanner = new Scanner(System.in); number = scanner.nextInt() ; while (number < LOWER || number > UPPER) { System.out.println( "ERROR: Enter a value in the range 1-100: " ) ; number = scanner.nextInt() ; } System.out.println( "The number entered was:" + number ) ; } //public static void main( String args[] ) }