Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void wpisanieOceny(int numerIndeksu, double ocena){
- IteratorTablicowy i = new IteratorTablicowy(student);
- boolean zmieniona = false;
- i.first();
- while(!i.isDone() && i.current() !=null){
- Student st = (Student)i.current();
- if(st.getNumerIndeksu() == numerIndeksu){
- st.setOcena(ocena);
- System.out.println("Ocena ustawiona");
- System.out.println(st);
- zmieniona = true;
- }
- if(!zmieniona){
- System.out.println("Nie znaleziono studenta");
- }
- i.next();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment