Moe Jackson wrote:I don't understand the last line of code, how does the method take (int[ ] n ) as an array? Why is n an array?
It's an array because the class defines it as such. Think of
(int[ ] n ) as the method saying, "Pass me an int array and call in
n."