public class Demo {
public static void main(String[] args) {
String str="123456";
int num = Integer.parseInt(str);
}
}
Java 将字符串转化为数字
最新推荐文章于 2023-03-05 18:04:04 发布
public class Demo {
public static void main(String[] args) {
String str="123456";
int num = Integer.parseInt(str);
}
}