java.lang.ArrayStoreException: source[0] of type com.ewin.sqlite.BarCode cannot be stored in destination array of type java.lang.String[]
在类里面加方法,进行转换。
谢谢 可是能具体点? 我是新手
在eclipse中使用快捷键alt+shift+s选择重写toString方法,直接就可以生成一个返回值是"[ 属性名: 属性值.............]"的toString方法,也可以自定义输出格式,希望能帮到你
this.whereArgs= new String[list.size()];
// List转换成数组
for (int i = 0; i < list.size(); i++) {
this.whereArgs[i] = list.get(i).toString();
}
}