G
Guest
I have two (VERY) simple classes:
---
class Klasse
{
public static void test()
{
System.out.println("Done!");
}
}
---
and
---
class Caller
{
public static void main(String[] args)
{
Class.forName("Klasse").getMethod("test",null);
}
}
---
Now, when I run the Caller class everything finishes just fine and
without any Errors, but the "test"-Method just isn't called. :-(
Where is my Mistake?!
Thanks,
SuSp
---
class Klasse
{
public static void test()
{
System.out.println("Done!");
}
}
---
and
---
class Caller
{
public static void main(String[] args)
{
Class.forName("Klasse").getMethod("test",null);
}
}
---
Now, when I run the Caller class everything finishes just fine and
without any Errors, but the "test"-Method just isn't called. :-(
Where is my Mistake?!
Thanks,
SuSp