I want to call a method in java with a given string like this for example:
String string = "HelloWorld";
main.string();
I want something like this to call the method defined in the string, would that be possible? If not (which I am kind of expecting), are there alternatives?