摘要:
package zxd.work620; public class Text1 { public static void main(String[] args) { /**6.20:异常 *Exception * 1、NullPointerException数组NULL值异常; * 2、ClassCastException * 3、ArrayIndexOutOfBoundsExcep... 阅读全文
摘要:
package zxd.work620; public class Text6 { public static void main(String[] args) { Text6 t = new Text6(); System.out.println(t.test1(1));// 结果1 a c 3 } public int test1(... 阅读全文
摘要:
Collection 和 Collections的区别答:Collection是集合类的上级接口,继承与他的接口主要有Set 和List.Collections是针对集合类的一个帮助类,他提供一系列静态方法实现对各种集合的搜索、排序、线程安全化等操作 Set里的元素是不能重复的,那么用什么方法来区分 阅读全文