How do I define a name for a new instance of a class using a variable content as the name?
so in the example below i want test to be the name of the instance created of the new class object, but for some reason it doesn't get the content of the string instead takes the string name.
String name = "test";
room name = new room();
Thanks