Main.java:9: error: cannot find symbol
valor = entrada.nextInteger();
^
symbol: method nextInteger()
location: variable entrada of type Scanner
Main.java:10: error: bad operand types for binary operator '||'
System.out.println( (valor&1 || valor<=2) ? "NO" : "YES");
^
first type: int
second type: boolean
2 errors