This file contains hidden or 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 Serialization | |
{ | |
public static ArrayList<Profile> profiles = new ArrayList<Profile>(); | |
public static void main(String[] args) | |
{ | |
profiles = (ArrayList<Profile>) deserData("profiles"); | |
System.out.println(profiles.size()); | |
Profile profile = new Profile(); | |
profile.setName(JOptionPane.showInputDialog(null, "Введите имя:")); |