my code works its just that my textarea in my message box runs out of my set window.
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
Type: Posts; User: mcpanthers22
my code works its just that my textarea in my message box runs out of my set window.
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
thanks guys for the help! how do you change this to solved?
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...
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...
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...
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();...
Hey guys! I'm new to Java and this forum. I hope you guys can assist me while in the process of learning and maybe I will be able to help some too!