From 1be9d7b4295e052b1abc13b52a580a360d9127e6 Mon Sep 17 00:00:00 2001 From: Selim Eser <2211482@stud.hs-mannheim.de> Date: Sun, 9 Jun 2024 15:17:47 +0200 Subject: [PATCH] Changed method return to ArrayList --- src/main/java/de/hs_mannheim/domain/System.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/de/hs_mannheim/domain/System.java b/src/main/java/de/hs_mannheim/domain/System.java index 8249626..ec59eee 100644 --- a/src/main/java/de/hs_mannheim/domain/System.java +++ b/src/main/java/de/hs_mannheim/domain/System.java @@ -5,6 +5,7 @@ import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.net.http.HttpResponse.BodyHandlers; +import java.util.ArrayList; import java.util.HashSet; import java.util.TreeSet; @@ -43,12 +44,12 @@ public class System { return true; } - public TreeSet search(String hometown_or_zip){ - return new TreeSet(); + public ArrayList search(String hometown_or_zip){ + return new ArrayList(); } - public TreeSet random_destinations(){ - return new TreeSet(); + public ArrayList random_destinations(){ + return new ArrayList(); } public String[] destination_details(String destination_zip){