Home > Articles > Programming > Java

  • Print
  • + Share This
From the author of

Next: Testing Equality

So far, so good. A couple things should stand out: First, the deck isn’t shuffled! That’s acceptable for now, though; every new package of Bicycle cards I buy is in the same order. Second, I could probably improve the contains method by implementing a definition for equality in the Card class. I’ll address both of these concerns in future installments.

Meanwhile, here’s the code (source.zip) we’ve built in this installment.

  • + Share This
  • 🔖 Save To Your Account