Witam, co oznacza taki zapis wybor-1? Nie rozumiem tego fragmentu kodu (pogrubione).
public void wyswietlMenu(){
Integer wybor = 1;
while(wybor != 0){
System.out.println("\nWyświetlanie sredniej z przedmiotu. Wybierz przedmiot lub powrot");
szkola.wyswietlListePrzedmiotow();
System.out.println("\n0.Powrot");
wybor = pobieraczDanych.getCalkowita();
if(wybor != 0){
if(wybor-1 > szkola.getIloscPrzedmiotow()){
System.out.println("Podałeś nie prawidłowy numer przedmiotu");
}else {
szkola.wyswietlSredniaStudentowZPrzedmiotu**(wybor-1);**
}
}
}
}
}