I have an output like
1054273,
1148244,
1174481,
1175759,
1180656,
1181151,
I need to remove the comma at the end.
I tried the code :
str = str.replaceAll(", $", "");
But the output shows like all the commas were removed.
Can anyone help me to solve this??
Thanks, SK