2012-08-28 66 views

回答

2
String shortString = longString.substring(0, Math.min(longString.length(), 40)); 

你可能想借此在String

+1

+1'Math.min' –

相關問題