Home Segments Top Top Previous Next

540: Mainline

To make generally useful the file-reading and array-writing program in Segment 538, you must repackage it as a method defined in its own class, rather than retaining it as part of main in the Demonstrate class. Accordingly, you need to know how to specify that a parameter is an array and that a returned value is an array.