Created
February 23, 2022 20:30
-
-
Save 6a6f6a6f/facf7e9cff4a1a4179140ffb46e9cf09 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
public class Person implements Serializable { | |
private String firstName; | |
private String lastName; | |
//... | |
} | |
FileInputStream fileIn = new FileInputStream("personSerialized"); | |
Person person = (Person) new ObjectInputStream(fileIn).readObject(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment