The generic parameter does not allow you to add strings.
ArrayList<Card> cards; // this can only hold objects of the type Card
You must construct a card object based off of the string in...
Type: Posts; User: helloworld922
The generic parameter does not allow you to add strings.
ArrayList<Card> cards; // this can only hold objects of the type Card
You must construct a card object based off of the string in...
The ArrayList implementation is built off of Arrays. Basically anywhere you can use Arrays it can be replaced by an ArrayList. While the other way around is also true*, it can (and usually does)...