This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
You Think That java doesnot support more than one dimensional array. If you see two dimensional array then it is array of Array. if you find three dimensional array then it is array of array of array. And So on...
1) int   myarray = new int Here in this case you are specifything that you have array with contains another array into it.
Now if you want all statement 1,2,3 and four into one line then you can do it as, int myarray = new int.
Now assume, you want a zigzag array. So in that case what you will do? In this case following code will come to rescue.