- 4. Methods Use Instance Variables: How Objects Behave
- from Head First Java, 2nd Edition
- Publisher: O'Reilly Media, Inc.
- Released: February 2005
just reminding myself, that in order to create an array, you need to allocate an array (new), and in order to create the objects for the references at different indexes, you need to allocate (new) again. Basically array itself is again a reference; not a primitive variable.
Share this highlighthttp://www.safaribooksonline.com/a/head-first-java/11126919/