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
Apache commons-lang has some support for this in StringUtils:
Gets a substring from the specified String avoiding exceptions. A negative start position can be used to start n characters from the end of the String
Gets a substring from the specified String avoiding exceptions.
A negative start position can be used to start n characters from the end of the String
You'll still have to use an explicit start index though.