No such thing as an "address" in
Java. This avoids big problems in C and C++ associated with pointer arithmetic, buffer overruns and such.
And why would you save addresses to a file? When a program ends, the memory that was allocated goes away and your pointers would be invalid. Now, if you wanted to preserve the contents of the linked list, take a look at the
Java Tutorial chapter on
IO: Reading and Writing, especially the part about Object Serialization.