摘要: import java.util.*;class Name{ private String firstName,lastName; public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } public String getLastName() { return lastName; } public voi... 阅读全文
posted @ 2013-04-05 16:24 glt66 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 1 import java.util.*; 2 3 class Name 4 { 5 public String name; 6 public String sex; 7 public Name(String name,String sex) 8 { 9 this.name=name;10 this.sex=sex;11 } public String toString() { return name+" "+sex; }12 }13 14 public class testarrlist {15... 阅读全文
posted @ 2013-04-05 14:56 glt66 阅读(148) 评论(0) 推荐(0) 编辑