索引0请求的大小为0意味着什么?

kil*_*ler 2 java sqlite

我在我的应用程序中收到此错误.我只是想知道这个错误exaclty意味着什么.如果你举一个简单的例子来解释,那将是非常好的

nge*_*esh 5

它只是意味着您的Array或Cursor或者什么都没有任何元素,它的长度是0.所以

假设

String[] s = {};//not sure if it compiles. just an example for understanding
s[0]//doing this means asking for 1st elemnt when s does't have any..
Run Code Online (Sandbox Code Playgroud)