I would like to cut a Java String when this String length is > 50, and add \"...\" at the end of the string.
Example :
I have the f
You can use safe substring:
org.apache.commons.lang3.StringUtils.substring(str, 0, LENGTH);