String和Int之间的相互转化: a1=Integer.parseInt(s1); s1=Integer.toString(a1); Object只能分步转换,先转换为string,然后通过Integer来转换成int类型