命令行传参
package com.xqstudy.method;
public class Demo2 {
public static void main(String[] args) {
//args.length 数组长度
for (int i = 0; i < args.length; i++) {
System.out.println("args[" + i+"]"+args[i]);
}
}
}
// 下面是使用命令行进行传参
标签:传参,int,args,length,命令行,public
From: https://www.cnblogs.com/xqstudy/p/18122879