Hello all -- new here; first post. Not sure if this is the right place, so my apologies.
I'm sort of a beginner; going through "Head First Java," and was wondering if it's possible to take input from a user and use that as a reference variable for an object. I want to try and make something like a contacts application for myself, as a way of learning the language, and currently have a method where the user enters a string, and I tried to use that string as the name for the new object.
Turns out that I can't use the string as the reference variable; got an error message.
I want to create the object (as I said, using the entered information from the suer as the reference variable), then fill in all the instance variables, but I'm not sure how to do that, if it can be done at all. Is there anyone out there who can offer some help?
Again, my apologies if this is the wrong forum for this question.