Appendix    B

Four of a Kind

Application development isn’t an easy task. If you don’t plan carefully before you develop an application, you’ll probably waste your time and money as you endeavor to create it, and waste your users’ time and money when it doesn’t meet their needs.

Caution   It’s extremely important to test your software carefully. You could face a lawsuit if malfunctioning software causes financial harm to its users.

In this appendix, I present one technique for developing applications efficiently. I present this technique in the context of a Java application that lets you play a simple card game called Four of a Kind against the computer.

Understanding Four of a Kind

Before sitting down at the computer and writing code, you need ...

Get Learn Java for Android Development, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.