how to delete symbol from the end of the stirng code example
Example 1: string replace last character java
if(fieldName.endsWith(","))
{
fieldName = fieldName.substring(0,fieldName.length() - 1);
}
Example 2: kotlin string remove last 3 digits
str.substring(0, str.length() - 2);