采用Builder模式构造对象
通常构造对象时,我们会采用构造函数的方式来对对象的参数进行初始化,例如: Student stu = new Student(2010, “Hesey”, 0,…
通常构造对象时,我们会采用构造函数的方式来对对象的参数进行初始化,例如: Student stu = new Student(2010, “Hesey”, 0,…
public class test { public static void main(String[] agrs) { int a = 1000, b = 1…