admin 管理员组

文章数量: 887021


2024年1月16日发(作者:常量定义的语法格式)

4.

5.

6.

7.

8.

9.

10.

11.

12.

13.

14.

15.

16.

17.

18.

19.

20.

21.

22.

23.

24.

25.

26.

27.

28.

29.

30.

31.

32.

33.

34.

35.

36.

37.

38.

39.

40.

41.

42.

43.

44.

45.

46.

47.

48.

49.

50.

51.

public class User2 {

private int id;

private String name;

private String password;

private int age;

private List interests;

private String author;

public List getInterests() {

return interests;

}

public void setInterests(List interests) {

sts = interests;

}

public String getAuthor() {

return author;

}

public void setAuthor(String author) {

= author;

}

public int getId() {

return id;

}

public void setId(int id) {

= id;

}

public String getName() {

return name;

}

public void setName(String name) {

= name;

}

public String getPassword() {

return password;

}

public void setPassword(String password) {

rd = password;

}

public int getAge() {

return age;

}

public void setAge(int age) {

= age;

}

@Override

public String toString() {

return "User2 [id=" + id + ", name=" + name + ", password=" + password + ", age=" + age + ", interests=" + interests +


本文标签: 常量 定义 语法 格式 作者