我在我的应用程序中遇到了这个错误。我只想知道这个错误 exaclty 是什么意思。如果能举个简单的例子来说明一下就好了
最佳答案
它只是意味着你的数组或游标或任何没有任何元素的东西,它的长度是 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..
关于java - 大小为 0 的索引 0 究竟意味着什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7360554/