class test
{}
class Roy
{}
class chin
{
public static void main(String [] args)
{
Class c=null;
try
{
c=Class.forName("test");
System.out.println(c);
}
catch(ClassNotFoundException e){
e.printStackTrace();
}
}
}
可以的话把答案发到[email protected]!谢谢了!
我是个刚刚自学JAVA的人,能说的详细一点就好了!
{}
class Roy
{}
class chin
{
public static void main(String [] args)
{
Class c=null;
try
{
c=Class.forName("test");
System.out.println(c);
}
catch(ClassNotFoundException e){
e.printStackTrace();
}
}
}
可以的话把答案发到[email protected]!谢谢了!
我是个刚刚自学JAVA的人,能说的详细一点就好了!
出现没有找到类的异常。。只要运行:java chin就可以了。