───────────────────────────────────────
作者[email protected](觉得我帅就直说别不好意思),信区:Java
标题Re:如何将string转换为int?
时间我爱南开站(ThuMay2709:31:512004)
───────────────────────────────────────
转信站:PKU!news.happynet.org!NanKai
Integer.parseInt()[email protected] (sijing) 在 ta 的帖子中提到:
───────────────────────────────────────
作者haoyou(笑对秋蝉),信区:Java
标题Re:如何将string转换为int?
时间北大未名站(2004年05月28日07:46:44星期五),站内信件
───────────────────────────────────────
[email protected] (觉得我帅就直说别不好意思) 在 ta 的帖子中提到:Integer.parseInt()
───────────────────────────────────────
作者[email protected](野风),信区:Java
标题Re:如何将string转换为int?
时间白山黑水(SatMay2911:30:122004)
───────────────────────────────────────
转信站:PKU!news.happynet.org!news.neu.edu.cn!NEU
不过记得把string里的非数字字符去掉or会exception
[email protected] (觉得我帅就直说别不好意思) 在 ta 的帖子中提到:Integer.parseInt()【在[email protected](sijing)的大作中提到:】
───────────────────────────────────────
作者[email protected](小猪),信区:Java
标题Re:如何将string转换为int?
时间我爱南开站(SatMay2913:49:112004)
───────────────────────────────────────
转信站:PKU!news.happynet.org!NanKai
好象用trim()函数可以去掉[email protected] (野风) 在 ta 的帖子中提到:不过记得把string里的非数字字符去掉or会exception【在[email protected](觉得我帅就直说别不好意思)的大作中提到:】:Integer.parseInt()
───────────────────────────────────────
作者Aaronxwp(懒虫),信区:Java
标题Re:如何将string转换为int?
时间北大未名站(2004年05月29日17:53:03星期六),转信
───────────────────────────────────────
trim()只是去除字符串首尾的空格
[email protected] (小猪) 在 ta 的帖子中提到:好象用trim()函数可以去掉
───────────────────────────────────────
作者[email protected](javafan),信区:Java
标题Re:如何将string转换为int?
时间白山黑水(SunJun612:41:152004)
───────────────────────────────────────
转信站:PKU!news.happynet.org!news.neu.edu.cn!NEU
【在Aaronxwp.的大作中提到:】trim()只是去除字符串首尾的空格【在[email protected](小猪)的大作中提到:】:好象用trim()函数可以去掉Integer.parseInt(yourString);
最好这样写Integer.parseInt(yourString.trim()); |