Java示例数字因子 Java示例计算因子 Java示例方法覆盖 Java示例数字因子 public class NumberFactorial { public static void main(String[] args) { int number = 5; int factorial = number; for(int i =(number - 1); i > 1; i--) { factorial = factorial * i; } System.out.println("Factorial of 5 is " + factorial); } } Java示例计算因子 Java示例方法覆盖