Advertisement
Guest User

fesatea

a guest
Nov 27th, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. public void citanjePosudbe(Posudba<Publikacija> posudba)
  2. {
  3. try (ObjectInputStream in = new ObjectInputStream(new FileInputStream( POSUDBA )))
  4. {
  5. posudba = (Posudba) in.readObject();
  6.  
  7. System.out.println("Podaci posudbe : ");
  8. System.out.println("Naziv publikacije :" + posudba.getPublikacija().getNaziv());
  9. System.out.println("Vrsta : " + posudba.getPublikacija().getVrstaPublikacije());
  10. System.out.println("Broj stranica : " + posudba.getPublikacija().getBrojStranicaPublikacije());
  11. System.out.println("Cijena : " + posudba.getPublikacija().getCijenaPublikacije());
  12. System.out.println("Jezik knjige : " + posudba.getPublikacija());
  13. System.out.println("Izdavac : ");
  14. System.out.println("Drzava izdavaca : ");
  15. System.out.println("Raspolozivo za posudbu : ");
  16. System.out.println("Prezime : " + posudba.getClan().getPrezime());
  17. System.out.println("Ime : " + posudba.getClan().getIme());
  18. System.out.println("OIB : " + posudba.getClan().getOIB());
  19. System.out.println("Datum posudbe : ");
  20. in.close();
  21. }
  22. catch (IOException e5)
  23. {
  24. System.err.println(e5);
  25. System.exit(0);
  26. }
  27. catch (ClassNotFoundException e6)
  28. {
  29. System.err.println(e6);
  30. System.exit(0);
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement