Search:

Type: Posts; User: lupis

Search: Search took 0.10 seconds.

  1. Replies
    8
    Views
    2,352

    Re: check for valid argument to a method

    I do see your point. If i comment out the if statement in my method and all the throw and try catch codes, I have no problems running the program as long as I feed it with integers, but if I submit...
  2. Replies
    8
    Views
    2,352

    Re: check for valid argument to a method

    The point is more of a usability issue, I dont wont the user be presented by a compile time error, I want it gracefully handled. I want the user to be able to pass on whatever and then be presented...
  3. Replies
    8
    Views
    2,352

    Re: check for valid argument to a method

    Actually I just want to check that the value passed to this methods argument is a integer at all? If not, I want the method to throw a exception and the the calling method to catch it handle it.
  4. Replies
    8
    Views
    2,352

    check for valid argument to a method

    Hi,

    I am a newbie and have just managed to make my first java program wokr :-* I am now taking that program further to enable it do some error handling with throw -> try -> catch

    I want the...
Results 1 to 4 of 4