mardi 21 avril 2020

How do i convert this java 7 code to java 8 code [closed]

Map<String,Object> result = new HashMap<String,Object>();
if(!clientResponse.isEmpty() && clientResponse.get("status") != null){
    result.put("myStatus", clientResponse.get("status"));
}else{
    if(new LocalDateTime().isBefore(expectedreplydate))
        result.put("myStatus", "Due");
    else
        result.put("myStatus", "No Response");
}

I want to write this piece of code in java 8. could someone please help

Aucun commentaire:

Enregistrer un commentaire