Código:
 Scanner teclado = new Scanner(System.in); // Creamos el objeto teclado.
        int numerador = teclado.nextInt();
        int mod = numerador % 2;
        if ( mod == 0)
        {
            System.out.println("El número es par.");
        }
        else
        {
            System.out.println("El número es impar.");
        }
  Puedes probar esto, espero que te funcione. Estaba mal tu condicion del segundo if ya que solo tomas la variable teclado.