Unless you know the exact size of your working set, you shouldn't use arrays at all. This is that ArrayList<T> is for. Java arrays conform to the traditional "array" concept (in interface and generally in implementation); they are of static size. Most frequently, languages with "dynamic arrays" don't have arrays at all, but other constructs "helpfully" mislabeled as arrays. PowerShell is one of these.
Be careful of assuming anything based on a shell scripting language. Also, your book sounds like a piece of shit; I'd go Thinking in Java or something (it's freely available online).
(Aside: you may find yourself pissing people off if you write statements like your quoted bit. You can get away with that tone when you know half a dozen languages well enough to write production code, but before then it sounds "precocious," and "precocious" is just a fancy word for "douchey." Understand that your classmates, if not you yourself, cannot be relied upon to possess the fundamentals necessary for your instructor to provide a meaningful answer. Smells show-offy.)
Be careful of assuming anything based on a shell scripting language. Also, your book sounds like a piece of shit; I'd go Thinking in Java or something (it's freely available online).
(Aside: you may find yourself pissing people off if you write statements like your quoted bit. You can get away with that tone when you know half a dozen languages well enough to write production code, but before then it sounds "precocious," and "precocious" is just a fancy word for "douchey." Understand that your classmates, if not you yourself, cannot be relied upon to possess the fundamentals necessary for your instructor to provide a meaningful answer. Smells show-offy.)