cmd输出控制台传递的参数

Posted liuhappy

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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 [参数一] [参数二]

技术分享图片

 

以上是关于cmd输出控制台传递的参数的主要内容,如果未能解决你的问题,请参考以下文章