e048. the quintessential java application.txt
来自「这里面包含了一百多个JAVA源文件」· 文本 代码 · 共 17 行
TXT
17 行
The parameters to the application are made available in args. This example simply prints out Hello World!.
public class BasicApp {
public static void main(String[] args) {
// Process each parameter
for (int i=0; i<args.length; i++) {
// process args[i];
}
// Output a message to the console
System.out.println("Hello World!");
}
}
Here's the command to run the program:
> java BasicApp param1 param2 ...
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?