Android 如何插入到Stringp中[
我目前有预定义的数据Android 如何插入到Stringp中[,android,android-listview,Android,Android Listview,我目前有预定义的数据 String[] values = new String[] { "Android", "iPhone", "WindowsMobile", "Blackberry", "WebOS", "Ubuntu", "Windows7", "Max OS X", "Linux", "OS/2", "Ubuntu", "Windows7", "Max OS X", "Linux", "OS/2", "Ubuntu", "
String[] values = new String[] { "Android", "iPhone", "WindowsMobile", "Blackberry", "WebOS", "Ubuntu",
"Windows7", "Max OS X", "Linux", "OS/2", "Ubuntu", "Windows7", "Max OS X", "Linux", "OS/2", "Ubuntu",
"Windows7", "Max OS X", "Linux", "OS/2", "Android", "iPhone", "WindowsMobile" };
我想在对象数组中插入值
List<Scores> myScore = db.getAllScore();
for (Scores cn : scor)
{
// how can I insert it into values
}
List myScore=db.getAllScore();
分数(cn:scor)
{
//如何将其插入到值中
}
试试这个
List<Score> myScore = db.getAllScore();
for (int i = 0,j=value.length; i < myScore.size(); i++,j++) {
value[j]=myScore.get(i);
}
List myScore=db.getAllScore();
for(int i=0,j=value.length;i
y你不使用arraylist吗?我必须使用这个,所以这是不可能的?@meWantToLearn抱歉,我不明白你到底想要什么do@meWantToLearn你查过我的答案了吗?