Guest User

Untitled

a guest
Jul 16th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. /*
  2. * To change this template, choose Tools | Templates
  3. * and open the template in the editor.
  4. */
  5.  
  6. package zadanie2;
  7.  
  8. import java.util.ArrayList;
  9.  
  10. /**
  11. *
  12. * @author Hotell
  13. */
  14. public class Main {
  15.  
  16. ArrayList<Zamestnanci> zoznam_zamestnancov = new ArrayList<Zamestnanci>();
  17.  
  18. /**
  19. * @param args the command line arguments
  20. */
  21. public void pridajZamestnanca(){
  22. String meno_zamestnanca = StandardInput.readString("zadaj meno zamestnanca:");
  23. String priezvisko_zamestnanca = StandardInput.readString("zadaj priezvisko zamestnanca:");
  24. zoznam_zamestnancov.add(new Zamestnanci(meno_zamestnanca, priezvisko_zamestnanca));
  25. }
  26.  
  27.  
  28. public static void main(String[] args) {
  29. // TODO code application logic here
  30.  
  31.  
  32.  
  33.  
  34. pridajZamestnanca();
  35.  
  36.  
  37.  
  38. System.out.println(zoznam_zamestnancov.size());
  39.  
  40. }
  41.  
  42. }
Add Comment
Please, Sign In to add comment