remove last substring from string 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));