摘要:
ArrayList<String> arrayList = new ArrayList<String>(); <String>指泛型,规定这里存储什么类型数据 存储int型用Integer 存储double型用Double public class ArrayListTest { public st 阅读全文
摘要:
this:表示本类的属性 public class PhoneClass { //属性 private String model; private int price; //定义一个构造函数-无参 public PhoneClass(){ System.out.println("无参构造函数"); 阅读全文