If by import you mean "load an object Classso that you can run reflection methods", use:
Class<?> clazz = Class.forName( "com.mypackage.MyClass" );
(The reason our readers were confused by your word "import" is that this usually refers to the keyword importused at the top of Java class files to tell the compiler how to extend class names, for example import java.util.*;) ..
source
share