Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
int [ ] a;
任何人都可以描述这一行中发生的事情。[] 之间有空格。
You are defining a reference to an array which is presently null, and therefore of undefined size.
This is correct syntax. The spaces in between square brackets are not relevant.
Here is some proper further usage:
int [] a = new int[10];