File.listFiles()
然后迭代数组来创建文件数组。
GOT例外Cannot read the array length because "<local3>" is null
.我不明白
<local1>
(有时是<local3>
)来自哪里,这是什么意思?
应该这样:Cannot read the array length because the array is null
.
。Edit(回答评论)这个问题中唯一有趣的问题是什么是什么 我的回答回答了这个问题:
<local1>
只是<local1>
方法创建的阵列。由于路径错误,数组是File.listFiles()
。