[Java 教學範例拷貝]- 命令列引數(Command line argument)(2/2)
[Java 教學範例拷貝]- 命令列引數(Command line argument)(2/2)
剛才找資料時發現一個的Java 教學網站,趕快發揮(C/P)的長才將它備份來,有需要的同好,歡迎來(C/P)一下^^。
拷貝來源:
http://openhome.cc/Gossip/JavaGossip-V1/
http://openhome.cc/Gossip/JavaGossip-V1/CommandLineArg.htm
public class CommandLineArg {
public static void main(String[] args) {
System.out.print("讀入的引數: ");
for(String arg : args)
System.out.print(arg + " ");
System.out.println();
}
}
|