String和int互相转换,String转float String-->int int a=Integer.parseIn(str); int-->String String s= a+""; String-->float float f=Float.valueOf(str);