/** * Title: Chapter 4, "Methods" * Description: Examples for Chapter 4 * Copyright: Copyright (c) 2000 * Company: Armstrong Atlantic State University * @author Y. Daniel Liang * @version 1.0 */ // ComputeMeanDeviation.java: Demonstrate using the math methods // package chapter4; public class ComputeMeanDeviation { /**Main method*/ public static void main(String[] args) { final int count = 10; // Total numbers int number = 0; // Store a random number double sum = 0; // Store the sum of the numbers double squareSum = 0; // Store the sum of the squares // Create numbers, find its sum, and its square sum for (int i=0; i