View Single Post
  #3 (permalink)  
Old 11-11-2007, 10:07 AM
hardwired hardwired is offline
Senior Member
 
Join Date: Jul 2007
Posts: 1,266
hardwired is on a distinguished road
Code:
for(int p = 0; p < numPennies; p++){ MonetaryCoin mc = new MonetaryCoin(pennyValue); // You caught this one: coinFace = mc.isHeads(); ... // (coinFace = true) resets coinFace to true every time. if(coinFace == true){ // or you can write it as if(coinFace) {
Reply With Quote