title: Finding even numbers using a recursive method
body: <p>I am trying to have the code listed below receive an int input from user, then find amount of even numbers in that int. I'm getting an error when I try to print the return... any help? </p>
  
  <pre><code>import java.util.Scanner;
  public class evenDigits {
  
  public static int countEvenDigits(int number){
      if (number == 0)
          return 0;
      else{
          int lastDigit = number % 10;
          int result = countEvenDigits(number / 10);
          if (lastDigit % 2 == 0)
              return result + 1;
          else
              return result;
      }
  }
  
  public static void main(String[] args) {
  
      System.out.println("Please enter an integer.");
      Scanner keyboard = new Scanner(System.in);
      int number = keyboard.nextInt();
  
      countEvenDigits(number);
  
      System.out.println("There are " + result + " even digits in " + number);
  
  
  }
  
  }
  </code></pre>
  
  <p>Specifically, there is an error in this statement: </p>
  
  <pre><code>System.out.println("There are " + result + " even digits in " + number); 
  </code></pre>