This week's book giveaway is in the OCP forum.
We're giving away four copies of OCP Java SE 8 Programmer II Exam Study Guide and have Kathy Sierra, Bert Bates, & Elizabeth Robson on-line!
See this thread for details.
Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem in converting String to Number  RSS feed

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i am Arif i am getting run time Exception while converting String to Number please any one can advice me


Here i am calling above Method convertToNumber().

this is an Exception which i am getting at Run time


 
Rancher
Posts: 42975
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That number is too big for int - use long instead.

http://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!