for example, i have 10 classes created with some methods in it. now, i want to create a method which takes one of these classname as input parameter in String format and instantiate that class.
public void instantiateclass(String Classname)
{
// this method should instantiate the given classname
}
is this possible in java reflection? or any other concepts in java?