delete last character of string if it is on java code example
Example: java remove last character from string
String s = "Hello Worlds";
String end = "";
end = s.substring((0, s.length()-1));
String s = "Hello Worlds";
String end = "";
end = s.substring((0, s.length()-1));