Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- FileOutputStream fileOut = new FileOutputStream("src/GameSession.ser");
- ObjectOutputStream out = new ObjectOutputStream(fileOut);
- out.writeObject(game);
- out.close();
- fileOut.close();
- lblStatus.setText("Game Session saved in src/GameSession.ser");
- }catch(IOException i) {
- lblStatus.setText("Couldn't save current game session!");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement