Thanks everyone for the help. I finished the program and got it working. Here is what I ended up with. If anyone has suggestions or tips, please let me know.
My code:
import java.io.Console;...
Type: Posts; User: blobman23
Thanks everyone for the help. I finished the program and got it working. Here is what I ended up with. If anyone has suggestions or tips, please let me know.
My code:
import java.io.Console;...
I initialized them before the while loop.
I'm not sure what happened. I must have copied the wrong thing. The compile error that you got, was what I got.
This:
Project.java:35: variable length might not have been initialized
...
Okay, here is my new code:
import java.io.Console;
import java.util.*;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.FileNotFoundException;
import...
I apologize, I forgot to explain the program. Basically it's reading a list of grades from a file and putting a letter grade to them. It outputs the total number of each letter grade. The first...
Here is the input file "test.txt" is:
5
55 65 75 85 95
Here is my code:
import java.io.Console;