Results 1 to 2 of 2

Thread: ISBN Checker

  1. #1
    blobs86 is offline Member
    Join Date
    Mar 2009
    Rep Power

    Default ISBN Checker

    Hi, I am running into a problem when checking isbn numbers with zeros at the start of the isbn code. I am getting this error. integer number too large: 03190190
    Java Code:
    int num = 03190190;
    Any ideas on how to fix this problem? Thank you -Blobs

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power


    Do you ever do math with isbn "numbers"? They may look like numbers but they're not. I recommend that you use a String here not an int.

Similar Threads

  1. Formatting isbn number with Math.random()
    By dns77x7 in forum New To Java
    Replies: 11
    Last Post: 09-21-2008, 06:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts