Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.ArrayList;
- import java.util.List;
- public class Kurs
- {
- protected String nazwaKursu;
- protected List<Student> studenci = new ArrayList<>();
- public Kurs()
- {
- nazwaKursu = "";
- }
- public Kurs(String nazwaKursu)
- {
- this.nazwaKursu = nazwaKursu;
- }
- public String getNazwaKursu()
- {
- return nazwaKursu;
- }
- public void setNazwaKursu(String nazwaKursu)
- {
- this.nazwaKursu = nazwaKursu;
- }
- public List<Student> getStudenci()
- {
- return studenci;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement