Scanner sc = new Scanner(System.in); int age = sc.nextInt(); if(age < 20 || age > 60){ System.out.println("You don't have to work"); }