System.out.print(Statements)
is essentially System.out.println(Statements.toString()) ;
Run Code Online (Sandbox Code Playgroud)
它打印语句指向的地址.
[D@64bd4e3c" or "[D@7041a12f" As you may have observed changes because the location of the array in memory changes. Hence the address is different or may be the same if reused.
Run Code Online (Sandbox Code Playgroud)
你需要迭代Statements.
在伪代码中:
for i to Statements.length
print Statements[i]
Run Code Online (Sandbox Code Playgroud)
这是一个很好的链接,可以帮助您.
| 归档时间: |
|
| 查看次数: |
113 次 |
| 最近记录: |