I want to make the user able to name a String
variable at runtime.
Scanner input = new Scanner(System.in);
String name = input.nextLine();
The program asks me to type a word. How can I then create a variable whose identifier is the user's input?
I have tried this:
String (name) = "blah";
But it does not work.