can someone tell me why passing this boolean argument:
ballThread[i] = new Thread(new BallThread (ballArray [i], even)
to this:
public BallThread (Ball b, boolean e)
causes an error? it compiles fine without the boolean, all the variables are declared etc
even is just a boolean value based on whether an object in a thread is odd or even
cheers
ballThread[i] = new Thread(new BallThread (ballArray [i], even)
to this:
public BallThread (Ball b, boolean e)
causes an error? it compiles fine without the boolean, all the variables are declared etc
even is just a boolean value based on whether an object in a thread is odd or even
cheers
Comment