@Test public void testFactorial() { assertEquals(3628800, factorial(10)); }
@Override public long factorial(int n) { if (n == 0 || n == 1) return 1; return n * factorial(n - 1); }
Calculate implements ICalculate { @Override public long factorial(int n) { if (n == 0 || n == 1) return 1; return n * factorial(n - 1); } }
Calculate implements ICalculate { @Override public long factorial(int n) { if (n == 0 || n == 1) return 1; return n * factorial(n - 1); }  }
Calculate implements ICalculate { @Override public long factorial(int n) { if (n == 0 || n == 1) return 1; return n * factorial(n - 1); }  @Override long factorial(int n); }
Calculate implements ICalculate { @Override public long factorial(int n) { if (n == 0 || n == 1) return 1; return n * factorial(n - 1); }  @Override long factorial(int n);  }