Here's what I have so far:

/* * Create a Java program to read a file of floating point numbers and compute * the following statistics from the data file: * * 1. Maximum * 2. Minimum * 3. Arithmetic Average (Mean) * 4. Standard Deviation * * Do not assume anything about the large numbers in the file. They could be * positive or negative, and their magnitude could be extremely large or * extremely small. */ import java.io.*; import java.util.Scanner; public class DataFile { public static void main(String[] args) { double n; double max; double min; // double mean; // double standardDeviation; Scanner fileStream = null; try { fileStream = new Scanner(new File("RawData.txt")); max = fileStream.nextDouble(); min = max; // same for the first number while(fileStream.hasNextDouble()) { n = fileStream.nextDouble(); if(n > max) { max = n; } else if(n < min) { min = n; } } fileStream.close(); System.out.println("Maximum-File-Number: " + max); System.out.println("Minimum-File-Number: " + min); // System.out.println("Average-File-Number: " + mean); // System.out.println("Standard-Deviation : " + standardDeviation); } catch(FileNotFoundException e) { System.out.print("Error; Program Terminated!"); System.exit(1); } } }