public String do(Person p){}
How to get the parameter Person package name?I can only get the paramter type,only get class name.
public String do(Person p){}
How to get the parameter Person package name?I can only get the paramter type,only get class name.
you can use:
p.getClass().getPackage().getName();