+ 1

How in JAVA print a command line args in the output?

I have a program that works and shows the proper answer, but I need to show which arguments have been passed. Any help is much appreciated! Here is the code https://code.sololearn.com/ce2CSMOy0NEe

11th Jun 2018, 10:59 PM
DIY Mods
DIY Mods - avatar
2 Respostas
+ 1
Also if you want to print out something like "arg0 + arg1 + arg2 + ... = sum" think of the next: How to sort the input into the array? Then you will be able to print the arguments. If you are still struggling just say so and I'll help.
13th Jun 2018, 4:16 AM
Eldar Bakerman
0
First of all, you need to set a Scanner.
13th Jun 2018, 4:12 AM
Eldar Bakerman