摘要:
Demo1:子类实例化对象之前会自动先实例化父类对象,调用了父类无参构造方法 class A{ public A() { System.out.println("A、A类的构造方法"); } } class B extends A{ public B() { System.out.println(" 阅读全文
摘要:
Map<String, String> map = new HashMap<>(); // Convert all Map keys to a List List<String> result = new ArrayList(map.keySet()); // Convert all Map val 阅读全文