Topic: trim()作用

  Print this page

1.trim()作用 Copy to clipboard
Posted by: fgh520
Posted on: 2006-05-25 11:17

这个方法trim()到底起什么作用啊?
斑竹

2.Re:trim()作用 [Re: fgh520] Copy to clipboard
Posted by: lisliefor
Posted on: 2006-05-25 13:45

建议你看一下提问的智慧,那篇帖子!

3.Re:trim()作用 [Re: fgh520] Copy to clipboard
Posted by: why
Posted on: 2006-05-25 22:21

http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html#trim()

Returns a copy of the string, with leading and trailing whitespace omitted.
......
This method may be used to trim whitespace from the beginning and end of a string; in fact, it trims all ASCII control characters as well.

4.Re:trim()作用 [Re: fgh520] Copy to clipboard
Posted by: lhawk
Posted on: 2006-05-27 16:19

这个任何java书上都有,先查查


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923