Search:

Type: Posts; User: zipstacrack

Search: Search took 0.07 seconds.

  1. Replies
    9
    Views
    1,461

    [SOLVED] Re: User selection problem

    Done. Thank you very much.
  2. Replies
    9
    Views
    1,461

    [SOLVED] Re: User selection problem

    If I was to not include the if statement in the try statement how would I check if the integers were between the lower and upper local variables?
    It still requires a return type apparently.

    I...
  3. Replies
    9
    Views
    1,461

    [SOLVED] Re: User selection problem

    Getting there I think. This is my code now (I'm confused about the "exceptionthatmaybethrown")

    private int getChoice ( int lower, int upper ) {

    System.out.println (...
  4. Replies
    9
    Views
    1,461

    [SOLVED] Re: User selection problem

    Thank you very much for your reply,

    I am not familiar with try...catch.
    Could you possibly give me a small example of how it would work with this/or something similar to this?

    Regards,
    Max
  5. Replies
    9
    Views
    1,461

    [SOLVED] User selection problem

    Hey,

    So this is my code for my getChoice ( ) method.

    private int getChoice ( int lower, int upper ) {

    System.out.println (...
  6. Replies
    7
    Views
    1,220

    Re: [Newbie] Method will not execute.

    First off, don't feel bad about it not executing properly, that was the universities fault - a logic error on their part.
    The assessment worked wrong like that.

    Mr.777 provided what the code...
Results 1 to 6 of 6