79217195

Date: 2024-11-23 05:18:57
Score: 3.5
Natty:
Report link

Directly use trim() to remove character from last of string

String a=1,2,3,4,5,;

I want to remove last ,

a.trim(); It'll get the task done

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Pawan