public class Factorial { public static void main(String[] args) { System.out.println(doFactorial(20)); } public static long doFactorial(long value) { if (value <= 1) { return value; } return value * doFactorial(value - 1); }}