Answers for "get the last three characters of a string java"

11

java get last char of string

public class Test {
    public static void main(String args[]) {
        String string = args[0];
        System.out.println("last character: " +
                           string.substring(string.length() - 1)); 
    }
}
Posted by: Guest on February-24-2020
-1

how to find last character of string in java

print
Posted by: Guest on August-03-2020

Code answers related to "get the last three characters of a string java"

Browse Popular Code Answers by Language