📜  java 命令行参数 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:39.813000             🧑  作者: Mango

代码示例1
class CommandLineExample{  
public static void main(String args[]){  
System.out.println("Your first argument is: "+args[0]);  
}  
}

//Now follow these steps
compile by > javac CommandLineExample.java  
run by > java CommandLineExample sonoo