I want to invoke a method which look like shown below
public void setFontAndSize(Font f, float size)
to find a "Method" object from the "Class" following method needs to be called
getMethod(
String name, Class[] parameterTypes)
I am having problem passing array of class for premitive type float. If I pass Float, it gives NoSuchMethodException.
Class types [] = {Font.class, Float.class}
This gives error
Any idea???