Sytem.out.println(class.forname(" package.hello"))as" class hello" ? [英] Sytem.out.println( class.forname("package.hello")) as "class hello" ?
本文介绍了Sytem.out.println(class.forname(" package.hello"))as" class hello" ?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Class<?> clsname = class.forname(package.hello);
System.out.println(clsname);
输出:
java.lang.NoSuchMethodException:
class hello
我尝试了什么:
堆栈溢出
i已经开启50左右到60个网站,它们都没有显示我适当的答案
Class<?> clsname = class.forname("package.hello");
System.out.println(clsname);
output:
java.lang.NoSuchMethodException:
class hello
What I have tried:
stack overflow
i have opened around 50 to 60 websites , none of them show me the appropirate answer
推荐答案
方法名拼写forName [ ^ ]。请查看文档以了解此类简单错误。
The method name is spelled forName[^]. Please check the documentation for simple errors like this.
这篇关于Sytem.out.println(class.forname(" package.hello"))as" class hello" ?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文