string replace last character java

114

string replace last character java -

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

Comments

Submit
0 Comments