java方法04命令行传递参数




package com.Leo.method;

public class Demo03 {
public static void main(String[] args) {
//args.Length 数组长度
for (int i = 0; i < args.length;i++){
System.out.println("args[" + i + "]: " +args[i]);
}
}
}


posted @ 2021-06-09 20:13  Leoyuan  阅读(36)  评论(0编辑  收藏  举报