This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
i'm guessing your code still doesn't quite do what you want.
In fact, It gives me a compilation error. Remember than an array is a CONTAINER of things, not the things themselves. If you had an egg carton full of eggs, you don't try and put the carton into your cake batter, but some of the things inside the container.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
A nearby thread suggests another way to create your arrayThe new int bit and the , shown in the /* */ comment are optional. If you don't have the declaration on the same line, then the new int bit becomes compulsory.