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
Something like this may be:
String str = "abcdefghijklmnopqrtuvwxyz"; if (str.length() > 8) str = str.substring(0, 8) + "...";