[导入]JAVA数据类型转换

Posted on 2006-01-11 14:40 yoyozy 阅读(213) 评论(0)  编辑  收藏
  • 将字串 String 转换成数字类型

String 转 int

1.) int i = Integer.parseInt([String]); 或 i = Integer.parseInt([String],[int radix]);
2.) int i = Integer.valueOf(my_str).intValue();

St
文章来源:http://blog.donews.com/yoyozy/archive/2005/11/08/619306.aspx


只有注册用户登录后才能发表评论。


网站导航:
 

posts - 15, comments - 0, trackbacks - 0, articles - 1

Copyright © yoyozy