Ask your own question, for FREE!
Computer Science 18 Online
OpenStudy (javk):

Make up a simple java program that prints out the number of command line arguments passed to it

OpenStudy (javk):

@woodrow73 @theEric @abtster @caominhim @e.mccormick @pitamar

OpenStudy (e.mccormick):

What did you get so far?

OpenStudy (anonymous):

``` public static void main(String args[]) { } ``` In this case, the `args` array is the command line arguments passed, so `args.length` should give you the number of arguments.

OpenStudy (javk):

Thank you, i coudn't figure out where to put the command line arguements

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!