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

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

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

int2 = new Integer("123");

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

String ftstr = String.valueOf(2.345f);
原文地址:https://www.cnblogs.com/gdjdsjh/p/4819294.html