Created
May 1, 2020 10:55
-
-
Save janosgyerik/c33a09da922e98c9f2b047c576fcb4a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try (FileInputStream fis = new FileInputStream(path); | |
ObjectInputStream ois = new ObjectInputStream(fis)) { | |
Contact[] loaded = (Contact[]) ois.readObject(); | |
System.out.println(Arrays.toString(loaded)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment