Skip to content

Commit aedca57

Browse files
authored
Korjaus esimerkkikoodin Lambdaan
1 parent 7f0d138 commit aedca57

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

data/osa-9/2-rajapinta-comparable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ henkilot.stream().forEach(h -> System.out.println(h.getNimi()));
244244

245245
System.out.println();
246246

247-
Collections.sort(henkilot, (h1, h2) -> return h1.getSyntymavuosi() - h2.getSyntymavuosi());
247+
Collections.sort(henkilot, (h1, h2) -> h1.getSyntymavuosi() - h2.getSyntymavuosi());
248248

249249
henkilot.stream().forEach(h -> System.out.println(h.getNimi()));
250250
```

0 commit comments

Comments
 (0)