java.lang.NumberFormatException: For input string

前端 未结 7 615
栀梦
栀梦 2020-11-28 16:15

the eclipse tells that lang and i cant find a solution

Exception in thread \"main\" java.lang.NumberFormatException: For input string: \"2463025552\"

7条回答
  •  温柔的废话
    2020-11-28 16:37

    The basic thing is that, we don't need a phone number to be part of a arithmetic calculation like addition, subtraction etc. Hence we can take it as a String safely.

提交回复
热议问题