当前页面: 开发资料首页 → Java 专题 → 在一个字符串中去掉空白和换行符
在一个字符串中去掉空白和换行符
摘要: 在一个字符串中去掉空白和换行符
</td>
</tr>
<tr>
<td width="467" height="35" valign="top" class="ArticleTeitle">
public static final String chopAtWord(String string, int length) {
// First check if there is a newline character before length; if so,
// chop word there.