Java中String转换int 石宗昊 2021-04-23 123 阅读1分钟 public static void main(String[] args) { String a="123"; System.out.println(Integer.parseInt(a)); }