I am using reflection to put all my class\'s member variables that are of type Card class into an ArrayList instance. How do I finish t
Card
ArrayList
ArrayList cardList = new ArrayList(); Field[] fields = this.getClass().getDeclaredFields(); for (Field field : fields) { if (field.getType() == Card.class) { Card tmp = (Card) field.get(this); cardList.add(tmp);