Complete the Request

Report a typo

Select the option that completes the request, using a request parameter

Java
@PutMapping("/weather/{country}")
public void updateWeather({1} String country, {2} String weather) {
    weatherMap.put(country, weather);
}
Kotlin
@PutMapping("/weather/{country}")
public void updateWeather({1} country: String, {2} weather: String) {
    weatherMap[country] = weather
}
Select one option from the list
___

Create a free account to access the full topic