|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectStationList
public class StationList
Constructor Summary | |
---|---|
StationList()
Construct a Station List |
Method Summary | |
---|---|
Station |
find(String name)
Searches the list for a specific station |
void |
load(String filename)
Reads a file with station objects |
static void |
main(String[] args)
Test and demonstration program |
void |
print()
Prints the list of stations one per line using the stations toString-method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StationList()
Method Detail |
---|
public Station find(String name)
name
- The station name to be searched for
public void load(String filename) throws IOException
filename
- The file name
IOException
public void print()
public static void main(String[] args) throws IOException
IOException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |