I don't know how to do that because I thought one of the number I typed in would get printed onto the file.
Type: Posts; User: my21
I don't know how to do that because I thought one of the number I typed in would get printed onto the file.
How do I fix this error?
This is what happens
Please enter 7 scores
1
2
3
4
5
6
7
5
It still has the same problems as before.
Is this better?
public static void writeToFile (String filename) throws IOException {
BufferedWriter outputWriter = new BufferedWriter(new FileWriter(filename));
Scanner...
I fixed it, but the problem now is that it still takes more than 7 scores...and it does not seem to just stop.
I'm trying to ask the user to enter 7 scores by writetofile method by a loop that get written on a file on a separate line.
This is what I have so far:
public static void main(String[] args)...