1
public String do(Person p){}

How to get the parameter Person package name?I can only get the paramter type,only get class name.

Crytis
  • 300
  • 3
  • 10

1 Answers1

-1

you can use:

p.getClass().getPackage().getName();
MyYyY
  • 51
  • 1
  • 3
  • 9