how to remove last character of string in 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));