Dynamic Runtime Loading
Hi to everyone! I'm trying to make a dynamic runtime like this:
Class myClass = Class.forName(args[0]);
Method myMethod = findMainMethod(myClass);
// findMainMethod makes me get the main method of myclass
myMethod.invoke(null,new Object[]{args} );
When I use the method "Invoke" I have to introduce in it's second paramether the paramethers of myMethods as an array of String values. For example, if I have to introduce a float and an integer I have to make an array like this {"12.5","3"}. The problem that I have is that the function which I'm trying to make an "invoke" has an array of floats as a paramether. How can I make it works?
Thanks a lot!!!

