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've just started learning java and I'm trying to work out how i can create x n number of the same object (myObject) and assign them to a reference variable which the name increments by one each time, so i create myObject1, myObject2, myObject3 etc.
Here is the code. The issue is line #4 - i cannot use the String name i created on line 3, i'm stuck so help / suggestions are greatly appreciated.