Addresses (8)

   // Addresses continued
   Address loadAddress() 
           throws java.io.IOException {
      String name = readLine(addrFile);
      if (name == null)
         return null;
      String phone = readLine(addrFile);
      String addr = readLine(addrFile) + 
             "\n" + readLine(addrFile) + 
             "\n" + readLine(addrFile);

      return new Address(name, phone, 
                         addr);
   }


Slide 16 ©Copyright 1997 Jan Newmarch