Hi, sorry again for all the trouble, but I'm trying to get a reflective program to work. It takes a method from a user, and then runs it. My program works except it only works for strings. If they arguments needed for a method require ints or floats or whatnot, I can't run it.
The problem is because
getMethod(String name, Class parameterTypes) requires Classes
invoke(Object obj, Object args) requires objects. And I've tried for hours, but I can't get integers to turn into objects, or get the proper nomenclature (is that the right word?) for the integer class. Can anybody help me?