Java Factorial demo