第1个回答 2013-07-26
public class Test1 {
public static double method1(int n) {
if (n == 1) {
return n;
} else {
return n * method1(n - 1);
} }
public static void main(String[] args) throws Exception {
System.out.println("一百的阶层:" + Test1.method1(100));
}}