字符串转化为数值

1.字符串转化为int型

   int intValue=Integer.parseInt(intString)

2.字符串转化为double型

   double doubleValue=Double.parseDouble(doubleString)

posted @ 2011-06-08 19:10  爱无限  阅读(185)  评论(0编辑  收藏  举报