Lecture 10
17
Command line arguments in Java
–public static void main(String[] args)
•args is a parameter for the main method
•The declaration says it’s an array of String objects
•Its contents are the words on the command line after java ClassName
•Argument array can have any name you wish
–args is conventional
–old C programmers may call it  argv
–
–