Access the parameter type of a method reflectively
- by kunjaan
I have this but it always returns null
private static String getParameters(Method aMethod) {
Class<?>[] parameterTypes = aMethod.getParameterTypes();
for (Class<?> aParam : parameterTypes) {
System.out.print(aParam.getName());
}
return null;
}