I'm writing a program that uses a BufferedReader to read lines from a notepad file that I saved as altitude.txt.
Here is my code so far:
When I run this program so far, I get this error:
run:
Exception in
thread "main" java.lang.NullPointerException
at rocketjava.Main.main(Main.java:19)
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)
Does anyone know what my problem appears to be?
On a side note, I realize that my while loop really doesn't do anything quite yet, but I'll get there after I get this error fixed first.