对象类
public class test {
public String taglist;
public String namelist;
public test(String taglist, String namelist) {
super();
this.taglist = taglist;
this.namelist = namelist;
}
public String getTaglist() {
return taglist;
}
public void setTaglist(String taglist) {
this.taglist = taglist;
}
public String getnamelist() {
return namelist;
}
public void setnamelist(String namelist) {
this.namelist = namelist;
}
public String getList(){
return this.taglist+this.namelist;
}
}
需要使用该对象的Channel类里面
Test channelinfo[] = new Test[Channel.count];
for (int i = 0; i < channelinfo.length; i++)
{
channelinfo[i] = new Test(Channel.channelTagList.get(i).toString(),
" "+Channel.arraylist.get(i).toString());
Log.i("ChannelInfo taglist ", channelinfo[i].getList());
}