字符串和整型之间转换 字符串转整形 int num = Integer.ValueOf(str) -整型转字符串 String str = String.ValueOf(num) 字符和整型之间转换 首先将char转换成字符类型,其余的按照字符串和整型之间的转换即可