Lecture 16
30
Managing the JFile tree
•A Directory
–keeps a TreeMap of JFiles                                              (the Directory’s jfile field)                                          keyed by name
–has methods to add and retrieve JFiles by name
–has a method that allows client to loop on contents
•A JFile has a parent field in which it keeps a reference to the Directory it belongs to (like BankAccount – Bank)