 |
Cut Java String at a number of character - Stack Overflow
I would like to cut a Java String when this String length is > 50, and add ". ... Use
substring and concatenate: if(str.length() > 50) strOut = str.substring(0,7) + "..."; ...
www.google.com.tw |
 |