[ad_1]
string.reverse.substring(1).reverse
That’s basically chop, right? If you’re longing for a chop method, why not write your own StringUtils
library and include it in your projects until you find a suitable, more generic replacement?
Hey, look, it’s in commons.
Apache Commons StringUtils
.
[ad_2]