JavaRush/Java Blog/Random EN/Unique name for the object
djigurda71
Level 28

Unique name for the object

Published in the Random EN group
members
It is required to create a unique name for each object in the loop. Sample code : Unique name for the object - 1
for(int i = 0; i < 10; i++) {
    Cat ? = new Cat();
}
I can't figure out how to implement a unique name for each cat using a loop?
Comments
  • Popular
  • New
  • Old
You must be signed in to leave a comment
This page doesn't have any comments yet