把String类型的数据转换成int型

int id=Integer.valueOf(“12345”);

结果id=12345;

猜你喜欢

转载自blog.csdn.net/choath/article/details/77989390