Factorial in Java, two versions.