Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ZoznamZamestnancov {
- ArrayList<Zamestnanci> zoznam_zamestnancov = new ArrayList<Zamestnanci>();
- public ZoznamZamestnancov() {
- }
- public void pridajZamestnanca(){
- String meno_zamestnanca = StandardInput.readString("zadaj meno zamestnanca:");
- String priezvisko_zamestnanca = StandardInput.readString("zadaj priezvisko zamestnanca:");
- zoznam_zamestnancov.add(new Zamestnanci(meno_zamestnanca, priezvisko_zamestnanca));
- }
- }
Add Comment
Please, Sign In to add comment