I got String from the database which have multiple commas (,) . I want to remove the last comma but I can\'t really find a simple way of doing it.
,
You can use this:
String abc = "kushalhs , mayurvm , narendrabz ,"; String a = abc.substring(0, abc.lastIndexOf(","));