Professional Documents
Culture Documents
CODE:___________________________________________________________
StormChaser.java:_________________
package com.mycompany.stormchaser;
/**
*
* @author kylemccormick
* @starterfileauthor jjsullivan
*/
import java.io.*;
import java.util.Scanner;
// open/read hurricane.data
try {
System.out.println("Opening hurricane.data...");
fileInput = new Scanner(new File("hurricane.data"));
} catch (FileNotFoundException e) {
System.err.println("FileNotFoundException: " +
e.getMessage());
return;
}
// sys printout confirmation
System.out.println("File opened...");
System.out.println("Reading ...");
// storm object
beginDate = year * 10000 + month * 100 + day;
duration = 6;
newStorm = new Storm(beginDate, duration, name, wind,
pressure);
current = sequence; // stores new data until eof
-----------------------------------
The Top Ten Storms
----------------------------------------------------------------
--------
BUILD SUCCESS
----------------------------------------------------------------
--------
Total time: 1.215 s
Finished at: 2024-03-02T14:03:24-05:00