I need help with Java, please.
I have been trying to figure this out.. I need to create an object using a variable..
This is what I have tried:
Class objectName(variable) = new Class();
Class (objectName + variable) = new Class();
Class (variable) = new Class();
Class variable = new Class();
If you understand what I'm trying to do, as in.. If the user were to type in 5 let's say I want the object to be labeled.. 5 or even object5..
I've already searched through my textbook's index.. And no luck yet.. Please help me..
Thank you.