Answers for "remove last two characters from string"

1

excel trim last character from string

=LEFT(A1, LEN(A1)-1)
Posted by: Guest on August-24-2020
5

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;
}
Posted by: Guest on March-30-2020
0

kotlin string remove last 3 digits

str.substring(0, str.length() - 2);
Posted by: Guest on April-16-2020

Code answers related to "remove last two characters from string"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language