Search:

Type: Posts; User: jps

Search: Search took 0.09 seconds.

  1. Thread: getBet exception

    by jps
    Replies
    13
    Views
    2,982

    Re: getBet exception

    I assume you mean in this thread.


    :-bd



    If you have a new question ,depending on how related it is to the topic of the current thread, you may want to make a new thread, maybe not, but in...
  2. Thread: getBet exception

    by jps
    Replies
    13
    Views
    2,982

    Re: getBet exception

    Read my post #7. Have you fixed either of the two problems there? If so please post updated code and new questions. If not, see below:

    Do you see how the first if statement will block the...
  3. Thread: getBet exception

    by jps
    Replies
    13
    Views
    2,982

    Re: getBet exception

    So do you still have a question? If so, what is it?
    The snippet you posted in #8 looks fine if it does what you intended for it to do
  4. Thread: getBet exception

    by jps
    Replies
    13
    Views
    2,982

    Re: getBet exception

    static String pull()
    {
    double pull = Math.random();
    if (pull >= 0.25d)
    {
    return "BAR";
    }
    else if (pull >= 0.25d)
    {
    return "7";
  5. Thread: getBet exception

    by jps
    Replies
    13
    Views
    2,982

    Re: getBet exception

    Post everything just like you did in your first post. Ctrl+a to select all, Ctrl+v to copy, and once back in here, Ctrl+v to paste. Don't try to attach them as files. I (and many others) are just too...
  6. Thread: getBet exception

    by jps
    Replies
    13
    Views
    2,982

    Re: getBet exception

    Scanner scanner = null;
    ...
    sacanner.nextLine();

    how is null going to return anything?

    Try initiating the scanner to an instance of Scanner rather than null. Also hit up your favorite search...
Results 1 to 6 of 6