java递归算法经典实例 Java编程题:一个人上楼梯,他可以一步上1个台阶?

Java编程题:一个人上楼梯,他可以一步上1个台阶?必须递归编写如下:public class test{static final int s=10//the number of custom ste

Java编程题:一个人上楼梯,他可以一步上1个台阶?

必须递归编写如下:public class test{static final int s=10//the number of custom steps is static int len=0,sum=0,static int step[]=New int[s]static void compute(final int star){if(stair Java programming problem:一个人上楼梯时可以上一步,