java中将数字的字符串表示转化为数字

it2022-05-05  159

 

  int a = new Integer("1234").intValue()

  int b = Integer.parseInt("1234")

 

System.out.println(a+1+"\n"+b+1)之后都为1235。

转载于:https://www.cnblogs.com/rouge/p/3277947.html


最新回复(0)