📄 commandlineargs.java
字号:
// A program that displays command line arguments
public class CommandLineArgs
{
public static void main(String[] args)
{
int i, numOfArgs;
numOfArgs = args.length;
System.out.println("The number of command line arguments is " + numOfArgs);
System.out.println("These are the arguments that were passed to main():");
for (i = 0; i < numOfArgs; i++)
System.out.println(args[i]);
System.out.println();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -