From 1429f28e81a943fdfda9b7c21cb8bdcc574caa9f Mon Sep 17 00:00:00 2001 From: Tina Date: Mon, 28 Oct 2024 22:48:39 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20JDK=20=EB=B2=84=EC=A0=84=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=EC=97=90=20=EB=94=B0=EB=A5=B8=20=EC=86=8C?= =?UTF-8?q?=EC=8A=A4=20=EC=BD=94=EB=93=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lyf/jarvis/weather/service/WeatherReportService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/moneygement/lyf/jarvis/weather/service/WeatherReportService.java b/src/main/java/com/moneygement/lyf/jarvis/weather/service/WeatherReportService.java index a5dfc40..f2fbd50 100644 --- a/src/main/java/com/moneygement/lyf/jarvis/weather/service/WeatherReportService.java +++ b/src/main/java/com/moneygement/lyf/jarvis/weather/service/WeatherReportService.java @@ -17,7 +17,7 @@ public String getWeatherSummary(double latitude, double longitude) { return String.format( "In %s: %s, %.1f°C (feels like %.1f°C)", response.getName(), - response.getWeather().getFirst().getMain(), + response.getWeather().get(0).getMain(), response.getMain().getTemp(), response.getMain().getFeelsLike() );