Not quite sure what you mean, but you are able to read/write objects from/to a file using serialization and object streams.

Eg. You could write an ArrayList x to file y, or read ArrayList x back...