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);

你可能感兴趣的:(String)