Class structure for Top Trumps card
<p>I'm new to Java (and have limited coding skill in general) and am trying to implement a Top Trumps game (games consoles is the theme). It'll be an Android app in the end, but I want to get the mechanics in place first, with text output to see that things work.</p>

<p>Each card in the deck has five categories, all integers, and the same on all cards. I figure these should be static members in a class. Each card also has a boolean, which defines which category is best (the bot player will pick this when it's the bot's turn). I've not created these yet.</p>

<p>I'm struggling, to say the least. What I've got so far is below (only three categories here, but obviously these can be added to).</p>

<pre><code>public class Category {
    int stat;
    boolean isBest;

    public Category(int inStat, boolean inIsBest) {
        stat = inStat;
        isBest = inIsBest;
    }
}

public class Card {

    public Card () {
        Category cat1 = new Category(1977, true);
        Category cat2 = new Category(1989, false);
        Category cat3 = new Category(2000, false);
    }
}
</code></pre>

<p>The trouble here is that I have no way of tying the created categories into one card, so that later I can write, say:</p>

<pre><code>if (card1.cat1.stat &lt; 1000) ...
</code></pre>

<p>Any advice? I've looked extensively online and on here and my head's spinning.</p>