封装类Attribute: public class Attribute { private int id; private String name; private int age; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getName() { return name; } public void setName(String name) { thi…
1,因为没有服务器返回数据,对于Tomcat又懒得去配,所以我直接把数据写死到app中 先写一个实体类,便于操作 /** * 实体类 */ public class Person { int id ; String name ; int age ; public Person(int id, String name, int age) { this.id = id ; this.name = name ; this.age = age ; } public int getId() { retur…