Complete the method

Report a typo

Select the code that will complete the DELETE handler below. An example of a valid request to this handler is as follows:
DELETE http://localhost:8080/customers?id=1

Java
@RestController
public class CustomerController {
    private ConcurrentMap<String, String> customerMap = new ConcurrentHashMap<>();

    ________("/customers")
    public void deleteCustomer(@RequestParam String id){
        customerMap.delete(id);
    }
}
Kotlin
@RestController
class CustomerController {
    private val customerMap = ConcurrentHashMap<String, String>();

    ________("/customers")
    fun deleteCustomer(@RequestParam id: Int){
        customerMap.delete(id);
    }
}
Select one option from the list
___

Create a free account to access the full topic