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.
,
I'm late on this thread but hope it will help to some one.......
String abc = "kushalhs , mayurvm , narendrabz ,"; if(abc.indexOf(",") != -1){ abc = abc.substring(0,abc.length() - 1); }