建立一個customer類,類中的屬性有姓名,年齡,性別,每一個屬性分別有get、set方法。而後建立兩個customer對象:張立,18,女和王猛,22,男。把這兩個對象存儲在ArrayList對象中

package kehouti; public class Customer { private String name; private int age; private String sex; public Customer(String name, int age, String sex) { super(); this.name = name; this.age =
相關文章
相關標籤/搜索