实用类-<字符串与基本类型的转换>

字符串与基本类型的转换

字符串->基本类型

int i5=Integer.parseInt("123");
System.out.println(i5);

  


基本类型->字符串

String id=25+""

String sex='男'+""

  

int i=7;

String i=Integer.toString(i);

  

原文地址:https://www.cnblogs.com/bpdxqx/p/5763570.html