Import java.util.Scanner;
public class MyProg {
public static void main (String[] args) {
Scanner s = new Scanner(System.in);
System.out.print("Введите число: ");
double x = s.nextFloat();
if (x<-2.0f || (x>3.0f && x< 6) || x>9.0f)
{
System.out.print("true");
}
else
{
System.out.print("false");
}
}
}