摘要: list,set继承collection接口。map不继承。List 通过下标来存取 和值来存取Map 键值对应来存取 set 存取元素是无序的 阅读全文
posted @ 2012-11-07 11:23 流星焱雨 阅读(234) 评论(0) 推荐(0) 编辑
摘要: public class Du {public static void main(String[] args) {long fac = fac(n);System.out.println("n的阶乘为:" + fac);}public static long fac(int n){if(n == 1){return 1;}else{return fac(n-1) * n;}}} 阅读全文
posted @ 2012-11-07 11:00 流星焱雨 阅读(5917) 评论(0) 推荐(0) 编辑