Wouter Oet wrote:What is your definition of a data file?
Stephan van Hulst wrote:Yes, if you use the shipments variable without casting, you will only be able to use the methods declared in the List interface.
This is usually the preferred way to do it. Are there methods in ArrayList that you want to use?
Eric Daly wrote:Ok, then do you know how to do it using System.out.println? It looks like you only have to display the info once, which means you don't really have to do a Swing gui and get data from another class more than once. Do you know how to use a JOptionPane? Here's the API from Sun. Here's how you can use it:
and here's Sun's tutorial on it.