Advertisement
niske

Ispis

Nov 13th, 2024
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. public static void ispis(Dete[] deca) {
  2. String aut = Svetovid.in.readToken("kako da se zove izlazni? > ");
  3. Svetovid.out(aut).println(deca.length);
  4.  
  5. for (Dete d : deca) {
  6. Svetovid.out(aut).println(d.getIme());
  7. Svetovid.out(aut).println(d.getPrezime());
  8.  
  9. if (d.isDobar()) {
  10. Svetovid.out(aut).print("da ");
  11. } else Svetovid.out(aut).print("ne ");
  12.  
  13. Svetovid.out(aut).println(d.getGod());
  14. }
  15. Svetovid.out(aut).close();
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement