I want to overload the chop method of StringUtils to remove the last character if it is a backslash(\).
StringUtils
(\)
Is it possible to overload the function or I need to use an if condition?
Why not this instead?
StringUtils.removeEnd(s,"\\")