string replace last character java

104

string replace last character java -

if(fieldName.endsWith(","))
{
  fieldName = fieldName.substring(0,fieldName.length() - 1);
}

Comments

Submit
0 Comments