Search:

Type: Posts; User: willie lee

Search: Search took 0.08 seconds.

  1. Replies
    13
    Views
    2,974

    Re: getBet exception

    Could some one please look at my post on the 22nd of September.
  2. Replies
    13
    Views
    2,974

    Re: getBet exception

    Thanks jps! Here is my static String pull() with new changes.


    static String pull()
    {
    double pull = Math.random();
    if (pull < 0.25d)
    {
    return "BAR";
    }
  3. Replies
    13
    Views
    2,974

    Re: getBet exception

    I still have many problems. Please look at my post on 17/09/2012, 0620 hours where I entered my entire program and the output from it. Plus, underneath the program mentioned above, I listed the...
  4. Replies
    13
    Views
    2,974

    Re: getBet exception

    The error was mine when I entered it on this website. The code in my program reads:


    if(s1.equals("CHERRIES"))
    {
    cherryCnt++;
    }
  5. Replies
    13
    Views
    2,974

    Re: getBet exception

    import java.util.Scanner;
    import java.util.*;

    public class NewFoothill
    {
    Scanner input = new Scanner(System.in);
    Random myRandom = new Random();
    int randomNumber;
    static int...
  6. Replies
    13
    Views
    2,974

    Re: getBet exception

    I got my program to compile. However, it does not compile correctly. The getPayMultiplier and static void display(int winnings) methods do not appear. Plus, when I first tried running my program...
  7. Replies
    13
    Views
    2,974

    getBet exception

    Exception in thread "main" java.lang.NullPointerException at NewFoothill.getBet() line: 35

    String bet = scanner.nextLine();
    My eclipse debugger Expressions box states

    x+y=? = (No explicit...
Results 1 to 7 of 7