How do I print out a set of integers from my args
variable in Java?
I tried:
System.out.println("The numbers are " + args.length);
But all that does is print out the number of elements in the array.
I want it so that if there are 5 arguments passed: 1 2 3 4 5
the output should be:
1, 2, 3, 4, 5