public class GetPackageName {
public static void main(String[] args) {
GetPackageName obj = new GetPackageName();
System.out.println(obj.getClass().getName());
System.out.println(obj.getClass().getName().substring(0,obj.getClass().getName().lastIndexOf(".")));
}
}
相关文章
- 使用conda安装package时指定安装路径和channel
- ajax post data 获取不到数据,注意 content-type的设置 、post/get(转)
- 通过反射执行get、set方法
- [转] package-lock.json
- ajax post data 获取不到数据,注意 content-type的设置 、post/get
- Java-Runoob-面向对象:Java 包(Package)
- PHP get_class_methods函数用法
- phpcms中set_config和get_sysinfo函数
- How to get raw request body in ASP.NET?
- jQuery的$.get()函数不执行以及php端报错Uncaught Error: Call to a member function bind_param() on boolean in...