关于字符串类型与基本数据类型的转换

字符串类型-----》基本类型

int it1 = Integer.parseInt("123");

int2 = new Integer("123");

 

 

基本类型-----》字符串类型

String ftstr = String.valueOf(2.345f);

 

posted @ 2015-09-18 15:16  gdjdsjh  阅读(132)  评论(0编辑  收藏  举报