ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
> import java.util.Random; > import java.util.concurrent.BlockingQueue; > import java.util.concurrent.TimeUnit; > import java.util.concurrent.atomic.AtomicInteger; ~~~ public class Data{ private String id; private String name; public Data(String id,String name){ this.id=id; this.name=name; } public String getId(){ return id; } public void setId(String id){ this.id=id; } pubic getName(){ return name; } public setName(String name){ this.name=name; } @Override public String toString(){ return "Data [id=" + id + ", name=" + name + "]"; } } ~~~