今天爱分享给大家带来的是如何把Java中String转换为int【附代码】
public static void main(String[] args) {
String a="123";
System.out.println(Integer.parseInt(a));
}
原文链接:https://itblood.website/1667.html,转载请注明出处。

![LUNA V1.2.066 官方中文正式步兵版+存档[更新][电脑/7.3G] [精品SLG/中文/动态]](/wp-content/uploads/replace/2025/10/15/085a8f7d6b2b057cebb828c5c369f251.webp)