The args array will contain these six string elements: $ java HelloWorld apple banana coconut 123 456 789 For example, if you compile and run this program from the command line like this: Java puts the command line arguments into this array automatically. In Java, the only code you need is your public static main method with String array arguments. What kind of code do I need so that the program know that I am passing a command line argument? I won't grade against it, but I will need to look into the code, and comments will help me, so I'd appreciate enough commenting to make the code understandable. We've all been asked to write code according to the ICS Java Coding Standard. How important is commenting on the project?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |