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(".")));
    }
}

 

相关文章:

  • 2022-12-23
  • 2021-08-01
  • 2021-10-10
  • 2021-09-21
  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-24
  • 2021-06-03
  • 2022-12-23
  • 2021-08-09
  • 2021-11-10
  • 2021-09-13
相关资源
相似解决方案