This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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.