title: Adding text read from a file to an array list in java
body: <p>I am having trouble putting text read from a file into an array list. </p>
  
  <p>My text looks like this: </p>
  
  <pre><code>438;MIA;JFK;10:55;1092;447
  638;JFK;MIA;19:45;1092;447
  689;ATL;DFW;12:50;732;448 etc...
  </code></pre>
  
  <p>My code looks like this: </p>
  
  <pre><code>package filesexample;
  import java.io.*;
  import java.io.FileNotFoundException;
  import java.util.Scanner;
  import java.util.ArrayList;
  /**
  *
  * @author 
  */
  public class FilesExample {
  
  /**
   * @param args the command line arguments
   */
  public static void main(String[] args) throws IOException {
  
      File file = new File ("/Schedule.txt");
  
      try
      {
          Scanner scanner= new Scanner(file);;
  
          while (scanner.hasNextLine())
          {
              String line = scanner.nextLine();
              Scanner lineScanner= new Scanner(line);
              lineScanner.useDelimiter(";");
              while(lineScanner.hasNext()){
              String part = lineScanner.next();
              System.out.print(part + " ");
          }
  
            System.out.println();          
  
  
  
  
          }
  
      }catch (FileNotFoundException e){
              e.printStackTrace();
          }
      }
  }
  </code></pre>
  
  <p>Some help on getting started would be much appreciated thank you!</p>