基本类型转换 一、String 转 int String str = "123" int count = Integer.parseInt(str); 二、 对象数据类型 转 String Integer num = 123; String str = num