Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

replace last char in string java

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