Hi
I'm a beginner in Java. I know how to create a new object using "new" operator. But a program requires a different number of objects each time program runs.
so can someone please suggest how to implement the following--
Ask user how many objects are required-
Store number of objects required in n
for ( n times) {
create new object;
}
I'm familiar with basic grammar in Java. But please do help me in how to name objects when creating objects "automatically".
Thank you in advance.