Java in the Small: Arrays
No size in declaration
Card[] cars;
Size in instantiation
cards = new Card[Deck_Size];
Reference in the usual way:
cards[14];
cards[i];
Previous slide
Next slide
Back to the index
View Graphic Version
Notes:
No notes for slide 9