How to create object dinamically and call methods.
I want to create object of the class dynamically.
I have 2 variables.
How can i create the object of class that name is in variable classname and call method that name is in variable methodname?
In php i can just write like this:
How to do this in java?
And if this is possible how can i pass arguments if i have variable like this
or similar. I don't know on coding stage how many arguments are here and types. It must be parsed when running and passed to method.