How do I invoke a method in an object where that method has a generic parameter of type SortedMap<Integer,Vector<double[]>>?
// "c" is actually a class of mine that extends Thread
Class<?> cls = Class.forName(c.getClass().getName());
Method meth = cls.getMethod("add", new Class[]{??????}); // What do I put here?
meth.invoke(c, allData);
Not sure what to put in the new Class[]{} array. I tried SortedMap.class but that won’t work
Class.getMethod()uses varags these days. Have you tried