Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

string remove last character

public static String removeLastCharacter(String str) {   
	String result = null;   
    if ((str != null) && (str.length() > 0)) {      
    	result = str.substring(0, str.length() - 1);   
    }   
    
    return result;
}
Source by www.xenovation.com #
 
PREVIOUS NEXT
Tagged: #string #remove #character
ADD COMMENT
Topic
Name
7+6 =