For a truly abstract application that I am creating, I need to call methods without knowing their parameter types and only knowing the parameters in string form.
Say I have a method;
getNames(String like, int amount);
and I have an array of strings containing 2 parameters, so let's say that I have:
String[] params = new String[] {"jack", "25"};
Is there a way I can get and call this method using an array of params?
source
share