Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package zadanie2;
- import java.util.ArrayList;
- /**
- *
- * @author Hotell
- */
- public class Main {
- ArrayList<Zamestnanci> zoznam_zamestnancov = new ArrayList<Zamestnanci>();
- /**
- * @param args the command line arguments
- */
- 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));
- }
- public static void main(String[] args) {
- // TODO code application logic here
- pridajZamestnanca();
- System.out.println(zoznam_zamestnancov.size());
- }
- }
Add Comment
Please, Sign In to add comment