数组有两个元素; array.length返回20

时间:2014-10-12 16:28:20

标签: java arrays

我有一组BufferedImage' s。在示例断点中,数组包含两个元素。无论如何,length属性返回值20.这怎么可能?

eclipse debugger

1 个答案:

答案 0 :(得分:8)

这似乎是一个IDE设置。它只会在调试视图中显示数组中的非null元素。 Eclipse做到了这一点。