标签: java path classpath
I have the following String example which contains Absolute Path for a class
String myPath = "C:\Users\com\module\mypackage\MyClass.class" Need to get The package name: "com.module.mypackage" Is there any Build in library for That?
String myPath = "C:\Users\com\module\mypackage\MyClass.class"
"com.module.mypackage"