How can I ask the user for the name of class and create an object based on the name of the user’s class? I know the following code has an error but I hope it gives an idea as what I want to do.
String input = JOptionPane.showInputDialog(null, "Enter the name of object?”);
Stock input = new Stock(“GOO”, 538);