Search:

Type: Posts; User: kcarls22

Search: Search took 0.07 seconds.

  1. Replies
    6
    Views
    1,680

    Re: Help printing from an array using outFile

    Here is the final working code:

    public static void saveToFile()
    throws FileNotFoundException
    {

    PrintWriter outFile = new PrintWriter("theaterMovieData.txt");

    ...
  2. Replies
    6
    Views
    1,680

    Re: Help printing from an array using outFile

    Ok, I now have:

    public static void saveToFile()
    throws FileNotFoundException
    {

    PrintWriter outFile = new PrintWriter("theaterMovieData.txt");

    for(int i =...
  3. Replies
    6
    Views
    1,680

    Re: Help printing from an array using outFile

    Thanks for responding :) Yes, that's the part the teacher added, but do I remove the the movieList array from the existing for loop and give it it's own loop? Where do I move the print command?
  4. Replies
    6
    Views
    1,680

    Help printing from an array using outFile

    Hi,

    I need to write from an array to an outfile. The code is below. My teacher says I need an additional loop somewhere, but I'm not sure where. Anything will help. Thanks!


    public static...
Results 1 to 4 of 4