F
frank
Was wondering if there was a better way to insatiate a class based on
some string variable read from a properties file then an if-then-else?
String s = "class1";
if (s.equals("class1"))
{
myClass c1 = new class1();
}
else if (s.equals("class2"))
{
myClass c2 = new class2();
}
.....
Thanks,
Frank
some string variable read from a properties file then an if-then-else?
String s = "class1";
if (s.equals("class1"))
{
myClass c1 = new class1();
}
else if (s.equals("class2"))
{
myClass c2 = new class2();
}
.....
Thanks,
Frank