Search:

Type: Posts; User: my21

Search: Search took 0.09 seconds.

  1. Replies
    13
    Views
    1,914

    Re: Writing Integers to a file

    I don't know how to do that because I thought one of the number I typed in would get printed onto the file.
  2. Replies
    13
    Views
    1,914

    Re: Writing Integers to a file

    How do I fix this error?
  3. Replies
    13
    Views
    1,914

    Re: Writing Integers to a file

    This is what happens
    Please enter 7 scores
    1
    2
    3
    4
    5
    6
    7
    5
  4. Replies
    13
    Views
    1,914

    Re: Writing Integers to a file

    It still has the same problems as before.
  5. Replies
    13
    Views
    1,914

    Re: Writing Integers to a file

    Is this better?


    public static void writeToFile (String filename) throws IOException {
    BufferedWriter outputWriter = new BufferedWriter(new FileWriter(filename));
    Scanner...
  6. Replies
    13
    Views
    1,914

    Re: Writing Integers to a file

    I fixed it, but the problem now is that it still takes more than 7 scores...and it does not seem to just stop.
  7. Replies
    13
    Views
    1,914

    Writing Integers to a file

    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)...
Results 1 to 7 of 7