int a = 2;String b = ""+a;//java里面默认字符串与int素具相加为字符串。String c = "456";int d = Integer.parseInt(c);//将字符串转换