Ok, what I want to know is is there a way with Java to do what Python can do below...
string_sample = \"hello world\" string_sample[:-1] >>> \"hell
You could easily write such a method, remember that negative indices are subtracted from the length of the string to get the correct index.
public String slice(String s, int start) { if (start < 0) start = s.length() + start; return s.substring(start); }