📄 e048. the quintessential java application.txt
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -