摘要: java中数据类型转换转载自:http://www.cnblogs.com/andy2005/archive/2006/07/24/458564.html1如何将字串 String 转换成整数 int?A. 有两个方法:1). int i = Integer.parseInt([String]); 或i = Integer.parseInt([String],[int radix]);2). int i = Integer.valueOf(my_str).intValue();注: 字串转成 Double, Float, Long 的方法大同小异.2 如何将整数 int 转换成字串 Strin 阅读全文
posted @ 2013-08-18 23:39 TechStone 阅读(169) 评论(0) 推荐(0) 编辑