Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
Ranked #107.41K
~159 People Reached
Favorite Forums
Favorite Tags
java x 1
Member Avatar for sk8ergirl

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

Member Avatar for Tarek_2
0
159