查看类所在包名

http://www.findjar.com/index.x

如果用eclipse选中类名,然后ctrl shift T,就可看到包含比类的包了,前提是eclipse中有这个类对应的jar包

java.lang.Class.getPackage()此方法返回类的包名

原文地址:https://www.cnblogs.com/timssd/p/5753511.html