I have the output of my array that looks like 123611 (example numbers).
I am trying to get the output to be nicely formatted 1,2,3,6,11
I have not been around Java too much and I cannot remember how to go about doing this. Thanks!!
Here is my code:
int array3[] = { 1, 2, 3, 6, 11 };
for (int i = 0; i < array3.length; i++)
System.out.print(array3[i]);