Page 3 of 3 FirstFirst 123
Results 41 to 44 of 44
  1. #41
    aaroncarpet's Avatar
    aaroncarpet is offline Senior Member
    Join Date
    Nov 2009
    Location
    California
    Posts
    147
    Rep Power
    0

    Default

    try{ input integer} catch (Exception e) {systemout.println("invalid parameters"); /* recall input method*/}


    the jvm might cast characters into inttegers on inpit
    Last edited by aaroncarpet; 11-16-2009 at 10:21 AM. Reason: bad typos

  2. #42
    aaroncarpet's Avatar
    aaroncarpet is offline Senior Member
    Join Date
    Nov 2009
    Location
    California
    Posts
    147
    Rep Power
    0

    Default

    alll of the input stream classes throw exceptions........you have to try and catch to male your code work

  3. #43
    aaroncarpet's Avatar
    aaroncarpet is offline Senior Member
    Join Date
    Nov 2009
    Location
    California
    Posts
    147
    Rep Power
    0

    Default

    maybe an if null?

  4. #44
    aaroncarpet's Avatar
    aaroncarpet is offline Senior Member
    Join Date
    Nov 2009
    Location
    California
    Posts
    147
    Rep Power
    0

    Default

    sorry I was grumpy last night........I'll compile and anylize your code today
    :(

Page 3 of 3 FirstFirst 123

Similar Threads

  1. Error: unexpected type
    By silvia in forum New To Java
    Replies: 3
    Last Post: 02-05-2010, 09:54 PM
  2. Matlab data type implementation & speed
    By uzil24 in forum Advanced Java
    Replies: 3
    Last Post: 10-24-2009, 02:00 AM
  3. sychronized data type
    By java girl in forum Threads and Synchronization
    Replies: 3
    Last Post: 02-13-2009, 08:37 AM
  4. error while retrieving data from data base
    By kirtesh4u in forum New To Java
    Replies: 5
    Last Post: 11-15-2008, 04:10 PM
  5. Replies: 1
    Last Post: 11-11-2008, 08:18 PM

Tags for this Thread

Posting Permissions

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