这段代码抛出一个ArrayStoreException。我不知道这是怎么回事。
hm = new HighscoreManager();
hm.addScore(Game.timePerWord);
String[] converted = new String[hm.scores.size()];
converted = hm.scores.toArray(new String[0]);发布于 2012-06-12 01:55:01
正如我们看到的in the Android documentation一样,在集合和数组中出现ArrayStoreException时,类型不匹配。也许他们都不是java.lang.String?
https://stackoverflow.com/questions/8288818
复制相似问题