Scanner sc = new Scanner( System.in ); int x = sc.nextInt(); int y = sc.nextInt(); if( 0 <= x && x <= y ) { System.out.println( "0 <= x <= y" ); }