mam powiedzmy klase
public class student{
int imie;
int nazwisko;
}
oraz liste:
ArrayList<student> A=new ArrayList<student>();
jak wprowadzac do listy A poszczegolne elementy klasy student?
mam powiedzmy klase
public class student{
int imie;
int nazwisko;
}
oraz liste:
ArrayList<student> A=new ArrayList<student>();
jak wprowadzac do listy A poszczegolne elementy klasy student?
Stwórz nowego studenta, przypisz wartości i skorzystaj z metody
boolean add(E e);
z klasy ArrayList.