Answers for "how to get last 4 digits from a string in java"

11

check last character of string java

String str = "India";
System.out.println("last char = " + str.charAt(str.length() - 1));
Posted by: Guest on March-23-2020
0

getting the last value of an integer in java

int lastDigit = number % 10
Posted by: Guest on March-04-2021

Code answers related to "how to get last 4 digits from a string in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language