Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

replace last char in string java

if (fieldName.endsWith(",")) {
    fieldName = fieldName.substring(0, fieldName.length() - 1) + " ";
}
 
PREVIOUS NEXT
Tagged: #replace #char #string #java
ADD COMMENT
Topic
Name
3+5 =