cmd输出控制台传递的参数

1 public class Test2{
2     public static void main(String[] args){
3         System.out.println(args[0]);
4         System.out.println(args[1]);
5     }
6 }

 重要:java Test2 [参数一] [参数二]

 

posted on 2018-12-11 16:16  Happy丶Liu  阅读(1661)  评论(0编辑  收藏  举报

导航