Search:

Type: Posts; User: mcpanthers22

Search: Search took 0.11 seconds.

  1. Replies
    12
    Views
    1,736

    Re: Please HELP! my code is wrong somewhere.

    thanks guys for the help! how do you change this to solved?
  2. Replies
    12
    Views
    1,736

    Re: Please HELP! my code is wrong somewhere.

    Okay i got it to work finally lol I had to call my flip method in my main right before the boolean. here is what i ended up with and it does it every time. The String toString method really doesnt...
  3. Replies
    12
    Views
    1,736

    Re: Please HELP! my code is wrong somewhere.

    Yea I have changed the code a little to be able to use the boolean more but im not sure on my main set up. I know its wrong, but im not 100% sure how to use methods that are outside the main in the...
  4. Replies
    12
    Views
    1,736

    Re: Please HELP! my code is wrong somewhere.

    I wasnt really sure where to put it to be honest, but the void flip() method is supposed to flip the coin using Math.random.....Do i need to input my if statements here and do a function call into my...
  5. Replies
    12
    Views
    1,736

    Please HELP! my code is wrong somewhere.

    I am attempting to create a program for class that flips a coin 1000 times and counts the number of heads and tails. I have to use the following methods in this class:

    public boolean isHeads();...
Results 1 to 5 of 5