I have this array
Array myArray = {1,2,3};
I want to print the output of the array as follwoing
1,2,3
but when I do this
for(int i=0 ; i < myArray.length ; i++){
System.out.print(myArray[i]+",");
}
however I get this output 1,2,3, how can I get rid of the last comma