Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/198.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 如何插入到Stringp中[_Android_Android Listview - Fatal编程技术网

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你查过我的答案了吗?