String&int 之间的相互转换方法

                   String s = "12";

		Integer sin  = new Integer(s);

		Integer sins = Integer.valueOf(s);

		System.out.println(sin+" "+sins);

		int ad = 100;

		String sad = String.valueOf(100);

		String sadi = new Integer(ad).toString();

		String sadii = ad+"";

		System.out.println(sad+sadi+sadii);
posted @ 2008-06-11 15:19  maventalker  阅读(109)  评论(0编辑  收藏  举报