// package chapter6; /** * Title: Chapter 6, "Programming with Objects and Classes" * Description: Examples for Chapter 6 * Copyright: Copyright (c) 2000 * Company: Armstrong Atlantic State University * @author Y. Daniel Liang * @version 1.0 */ // TotalArea.java: Test passing an array of objects to the method public class TotalArea { /**Main method*/ public static void main(String[] args) { // Declare circleArray CircleWithAccessors[] circleArray; // Create circleArray circleArray = createCircleArray(); // Print circleArray and total areas of the circles printCircleWithAccessorsArray(circleArray); } /**Create an array of CircleWithAccessors objects*/ public static CircleWithAccessors[] createCircleArray() { CircleWithAccessors[] circleArray = new CircleWithAccessors[10]; for (int i=0; i