Update factorial.java