You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Henkilo -luokan konstruktorissa muuttujat väärinpäin:
public Henkilo(int syntymavuosi, String nimi)
-pitäisi olla:
public Henkilo(String nimi, int syntymavuosi)
Henkilo -luokan konstruktorissa muuttujat väärinpäin:
public Henkilo(int syntymavuosi, String nimi)
-pitäisi olla:
public Henkilo(String nimi, int syntymavuosi)
Lambda-lausekkeessa returnia ei käytetä:
Collections.sort(henkilot, (h1, h2) -> return h1.getSyntymavuosi() - h2.getSyntymavuosi());
-toimiva versio:
Collections.sort(henkilot, (h1, h2) -> h1.getSyntymavuosi() - h2.getSyntymavuosi());
The text was updated successfully, but these errors were encountered: