首页
科技
登录
6mi
u
盘
搜
搜 索
科技
Java没有 main 方法也可以打印 Hello world
Java没有 main 方法也可以打印 Hello world
it
2026-08-29
14
1
public
class
TestNoMain{
2
static
{
3
System.out.println("Hello world!"
);
4
System.exit(0);
//
5
}
6
}
转载于:https://www.cnblogs.com/BenWong/archive/2012/12/28/2837626.html
转载请注明原文地址: https://win8.8miu.com/read-1559916.html
最新回复
(
0
)