(1)整形转换为string
String i = Integer.toString(x);
(2)字符串转为整形
i = Integer.parseInt(stri);
(3)double转为string
String i= Double.toString(x);
(4)string转为double
i = Double.parseDouble(strdi);
(1)整形转换为string
String i = Integer.toString(x);
(2)字符串转为整形
i = Integer.parseInt(stri);
(3)double转为string
String i= Double.toString(x);
(4)string转为double
i = Double.parseDouble(strdi);