The program begins by declaring and initializing three arrays—six-element Integer
array integerArray
(line 7), seven-element Double
array doubleArray
(line 8) and five-element Character
array characterArray
(line 9). Then lines 11–16 display the contents of each array.
When the compiler encounters a method call, it attempts to locate a method declaration with the same name and with parameters that match the argument types in the call. In this example, ...
Get Java How to Program, Early Objects, 11th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.