
Retrieving command-line
arguments is discussed in
Chapter 8.
REFERENCE POINT
12.10 Combo Boxes 869
48 catch ( FileNotFoundException fnfe )
49 {
50 System.out.println( "Unable to find " + fileName );
51 }
52 catch ( IOException ioe )
53 {
54 ioe.printStackTrace();
55 }
56 }
57
58 /** getLocationList
59 * @return array of locations
60 */
61 public String []getLocationList()
62 {
63 String []temp = new String[vacationList.size( )];
64 for ( int i = 0; i < vacationList.size(); i++ )
65 temp[i] = ( vacationList.get( i )).getLocation();
66 return temp;
67 }
68
69 /** getDescription
70 * @param index index of vacation in vacationList
71 * @return description of vacation at ...