import java.util.*; public class ABCD { static boolean symbol = true; static Scanner read = new Scanner(System.in); static void isZerotoTen(){ while(symbol){ int num = read.nextInt(); symbol = num >= 0 ? num <= 9 ? false:true:true; } } public static void main(String[] arg) { isZerotoTen(); } }
public class ABCD
{
static boolean symbol = true;
static Scanner read = new Scanner(System.in);
static void isZerotoTen(){
while(symbol){
int num = read.nextInt();
symbol = num >= 0 ? num <= 9 ? false:true:true;
}
}
public static void main(String[] arg) {
isZerotoTen();
}
}