1. Integer/int 转 String
Integer a = 1; (int a = 1)
String b = Integer.toString(a);
2. float 转 String
float a = 1.0;
String b = String.valueOf(a) ;
3. 字符串转 Integer
String a ;
Integer b = Integer.parseInt(a) ;
4. String 转成float
String a;
float b = Float.valueOf(a) ;5.long 转 float
long a;
float b = (float) a ;
6. long 转 int
long a;
int b = (int) a ;