Asked by anonymous

How to remove comma after last digit in java?

Answers

Answered by oobleck
ever hear of google?
But, just as a note, if you're listing numbers,
print the first (easy to know when that happens) and then prefix all the rest with a comma. That way, at the end of the list, there is no trailing comma.
There are no AI answers yet. The ability to request AI answers is coming soon!

Related Questions