JAVA String转int

public class experiment {
 public static void main(String[] Zing) {
	 String str = "11212";
	 int b = Integer.valueOf(str).intValue();
	 System.out.println(b);
 }
}

猜你喜欢

转载自blog.csdn.net/qq_41359808/article/details/88771204