title: Returning the factorial of 10 using recursion in java
body: <p>Hello I have written the following code to return the factorial of n when the the value is 10 but i cant get my program to work. I have never used Java before and I am a beginner. </p>
  
  <pre><code>public static int Factorial(n)
  {
      if (n == 0) {
          return 1;
      } else {
          return( n * Factorial(n-1) );
      }
  }
  
  public static int main(args) {
      System.out.println(Factorial(10));
  }
  </code></pre>