I'm trying to write a console program that will ask the user for the name of a class. It will take this class name, load it - then create an instance of it so I can invoke methods etc etc.
How would I go about doing this?
So far I have used a Scanner to get the input. But now that I have the class name as a string. I'm not too sure how to load it then create an instance of it.
Any help would be appreciated.