Skip to content

Instantly share code, notes, and snippets.

@yusureabc
Created July 31, 2018 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yusureabc/33a82f54347b96791f8fc146d40ce8ae to your computer and use it in GitHub Desktop.
Save yusureabc/33a82f54347b96791f8fc146d40ce8ae to your computer and use it in GitHub Desktop.
打印所有的 java 命令行参数
/* $ javac CommandLine.java
$ java CommandLine this is a command line 200 -100 */
public class CommandLine
{
public static void main(String[] args)
{
int len = args.length;
for ( int i = 0; i < len; i++ )
{
System.out.println( args[i] );
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment