Programming Drill #16

Due: Wednesday, November 7
Goal:  Read data from a text file

The following is a list of scores for a game. If you're using TextPad, put the data into a text file called "scores.txt" in the same directory where you will be working on your Java program. If you're using NetBeans put them in your main project folder. This will let you open "scores.txt" without having to give the full pathname. If you have problems then specify the full pathname to the file in your Java program.

14401
3094
39201
57192
4948
55854
84
95
430
5502
65816
4994
7712
    

Write a Java program that opens this file, reads in each score as an integer, and remembers the highest score.  After all the scores have been read, output the high score (65816 in this example, but it could be different if the file had different scores in it). 

Show your completed program to your instructor or email it to kenrick@uaa.alaska.edu by the end of the day.