摘要:
list,set继承collection接口。map不继承。List 通过下标来存取 和值来存取Map 键值对应来存取 set 存取元素是无序的 阅读全文
摘要:
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;}}} 阅读全文