diff --git a/app/src/main/java/be/ugent/zeus/hydra/resto/RestoMenu.java b/app/src/main/java/be/ugent/zeus/hydra/resto/RestoMenu.java index 672b4e8e1..5b0e67659 100644 --- a/app/src/main/java/be/ugent/zeus/hydra/resto/RestoMenu.java +++ b/app/src/main/java/be/ugent/zeus/hydra/resto/RestoMenu.java @@ -31,6 +31,7 @@ import java.util.ArrayList; import java.util.List; import java.util.Objects; +import java.util.stream.Collectors; /** * Represents a menu for a single day. @@ -117,7 +118,7 @@ private List fixSoups(List soups) { } final String suffix = priceBig; - return finalSoups.stream().map(s -> s.withPrice(s.price() + " / " + suffix)).toList(); + return finalSoups.stream().map(s -> s.withPrice(s.price() + " / " + suffix)).collect(Collectors.toList()); } /**