title: ArrayList printing values missing?
body: <ol>
  <li><p>When entering my games in this format:  </p>
  
  <p>test : 120 : 120<br>
  game : 120 : 120<br>
  quit</p></li>
  <li><p>My txt file is only showing my first entry and not my second entry, in my text file it is displaying this below:  </p>
  
  <p>Player : adam  </p>
  
  <hr>
  
  <p>Game: test , score=  120 , minutes played=  120</p></li>
  <li><p>But I want it to show:  </p>
  
  <p>Game: test , score=  120 , minutes played=  120<br>
  Game: feff, score=  3412, minutes played=  434</p></li>
  </ol>
  
  <p>So far my code is:</p>
  
  <pre class="lang-java prettyprint-override"><code>import java.io.FileOutputStream;
  import java.io.IOException;
  import java.io.PrintWriter;
  import java.util.ArrayList;
  import java.util.List;
  import java.util.Scanner;
  
  public class Generator {
     private static char[] input;
  
     public static void main(String[] args) {
         int[] minutesPlayed = new int [100];
         String gamerName, gamerReport;
         String[] gameNames = new String[100];
         int[] highScores = new int[100];
         @SuppressWarnings("resource")
         Scanner Scan = new Scanner(System.in);
  
         System.out.println("-------------- Game Score Report Generator --------------");
         System.out.println("     ");
         System.out.print("Enter your Name.");
         System.out.println("   ");
         gamerName = Scan.nextLine();
  
         boolean isEmpty = gamerName == null || gamerName.trim().length() == 0;
         if (isEmpty) {
             System.out.print("Enter your Name.");
             gamerName = Scan.nextLine();
         }
  
         System.out.println("Enter details in this format - " + " --&gt; Game : Achievement Score : Minutes Played");
         System.out.println("    ");
         System.out.println("Game : Achievement Score : Minutes Played");
  
         gamerReport = Scan.nextLine();
         Scanner scanner = new Scanner(System.in);     
         List&lt;String&gt; al = new ArrayList&lt;String&gt;();    
         String word;                                  
         while (scanner.hasNextLine()) {               
           word = scanner.nextLine();                  
           if (word != null) {                        
             word = word.trim();                      
             if (word.equalsIgnoreCase("quit")) {      
               break;                                  
             }
             al.add(word);                             
  
           } else {
             break;                                   
           }
         }
  
         String[] splitUpReport; 
         splitUpReport = gamerReport.split(":"); 
         int i = 0;
  
         gameNames[i] = splitUpReport[0];
         highScores[i] = Integer.parseInt(splitUpReport[1].trim() );
         minutesPlayed[i] = Integer.parseInt(splitUpReport[2].trim());
  
         try
        {
           PrintWriter writer = new PrintWriter(new FileOutputStream("Gaming Report Data.txt", true));
           writer.println("Player : " + gamerName);
           writer.println();
           writer.println("--------------------------------");
           writer.println();
           String[] report = gamerReport.split(":");
           writer.println("Game: " + report[0] + ", score= " +report[1] + ", minutes played= " +report[2]);
           writer.close();
  
       } catch (IOException e)
       {
         System.err.println("File does not exist!");
       }    
     }                   
  public static char[] getInput() {
     return input;
  }
  }
  </code></pre>