Search:

Type: Posts; User: lupis

Search: Search took 0.21 seconds.

  1. Replies
    8
    Views
    2,349

    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,349

    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,349

    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,349

    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...
  5. Replies
    3
    Views
    1,925

    Re: do while loop terminating to early

    Thanks a lot, I altered my conditional and looping code to the following and it worked:


    do
    {

    System.out.print("Enter integer: ");
    System.out.flush();
    tempInt=Integer.parseInt(...
  6. Replies
    3
    Views
    1,925

    do while loop terminating to early

    Hi all,

    I am a newbie to programming and this is my first attempt to write a java program. I calculating the root of a integer that is supplied by the user, this then calls a method that does the...
  7. Thread: Hi all

    by lupis
    Replies
    1
    Views
    853

    Hi all

    I am a total newbie to programming and Java. I am studying to be a software tester and would learn a lot more about programming particularly Java including unit testing with JUnit.

    Brgds
    Sohail
Results 1 to 7 of 7