黑马程序员技术交流社区
标题:
main函数重载编译通过不能运行
[打印本页]
作者:
ZZBY
时间:
2015-9-9 00:30
标题:
main函数重载编译通过不能运行
本帖最后由 ZZBY 于 2015-9-9 00:32 编辑
file:///C:/Users/Administrator/Desktop/QQ%E6%88%AA%E5%9B%BE20150908010636.png
QQ截图20150908010636.png
(108.4 KB, 下载次数: 72)
下载附件
2015-9-9 00:27 上传
如图所示,编译是通过的却不能运行,不知道为什么,不知哪位愿意帮助解惑
作者:
ZZBY
时间:
2015-9-9 00:33
class DemoMain
{
public static void main(String[] args)
{
int x = 10;
main(x);
}
public static void main(int x)
{
System.out.println(x);
}
}
复制代码
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/)
黑马程序员IT技术论坛 X3.2