Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void Deserialize()
- {
- System.out.println("dupadupadupa");
- try
- {
- System.out.println("dupadupadupa");
- ObjectInputStream inputStreamBanks = new ObjectInputStream(new FileInputStream("banks.bin"));
- System.out.println((Bank)inputStreamBanks.readObject());
- for (int i=0; i<main.arr.size(); ++i)
- {
- System.out.println("dupadupadupa");
- Bank b = (Bank)inputStreamBanks.readObject();
- System.out.println("dupadupadupa");
- main.arr.add(b);
- System.out.println("dupadupadupa");
- System.out.println(b.nazwa);
- }
- inputStreamBanks.close();
- ObjectInputStream inputStreamAccs = new ObjectInputStream(new FileInputStream("accs.bin"));
- for (int i=0; i<main.kontoarr.size();++i)
- {
- Konto k = (Konto)inputStreamAccs.readObject();
- main.kontoarr.add(k);
- }
- inputStreamAccs.close();
- }
- catch (ClassNotFoundException e)
- {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- catch (FileNotFoundException e)
- {
- System.out.println("dupadupadupa");
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- catch (IOException e)
- {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement