Given a class name as a string, how do I get the package name of it at run time ? I do not have the fully qualified name with package name + class name. Simply only the clas
One of the simplest solution:
Test.class.toString().replace("class", "").replace(".","/").replace(" ", "")