79132927

Date: 2024-10-28 10:20:57
Score: 1
Natty:
Report link

I suggest you to use Regex. It is short and more readable:

 String result = text.replaceAll(",+", "");
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Soheil Babadi