Skip to content

Commit dc52cb3

Browse files
authored
Update OpenWeatherAPI.java
1 parent feeeb4b commit dc52cb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sample/OpenWeatherAPI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class OpenWeatherAPI {
1414

1515
public double getTemperature() throws APIException{
1616
// declaring object of "OWM" class
17-
OWM owm = new OWM("710d0b11cdff5de6ce42a0e2c369b70f");
17+
OWM owm = new OWM("ADD YOUR API KEY HERE");
1818
CurrentWeather cwd = owm.currentWeatherByCityName("Toronto");
1919

2020
var currentTemp = cwd.getMainData().getTemp();
@@ -48,4 +48,4 @@ public double getPressure() throws APIException{
4848
return pressure;
4949
}
5050

51-
}
51+
}

0 commit comments

Comments
 (0)