阅读背景:

为什么不能在java中的方法之外声明和初始化数组?

来源:互联网 

I'm confused when I declare and construct an array on separate lines in java outside of a method, thus it would be an instance variable, I get a compilation error, yet when I construct and initialize on one line it is fine, why does this happen?I'm confused when I declare and construct an ar




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: