public boolean znajdzObecnosc(List<Obecnosc> obecnosci, String data, Student s) {
   for (Obecnosc o : obecnosci) {
     if (o.getData().equals(data) && o.getStudent().getId() == s.getId()) {
       return o.getObecnosc();
     }
   }
   return false;
 }