Also, don't have ; after your if statements. That is basically causing your if to execute an empty statement and then always will therefore increment headcount and tailcount. That's why it's always...
Type: Posts; User: javapenguin
Also, don't have ; after your if statements. That is basically causing your if to execute an empty statement and then always will therefore increment headcount and tailcount. That's why it's always...
Also, you don't always have to use a String per se for the println.
System.out.println("The amount of 'Heads' entered is: " + headcount);
System.out.println ("headCount + " headCount++");
System.out.println ("tailCount + " tailCount++");
That will confuse it as you have an unclosed pair of " ".
I'm not sure if you want the "+" in...