[Solved] Retrieve value in HashMap [closed]


A Map is a key-value pair, i.e., a value is associated to a key.

Your code can be refactored as follows:

Map<String, Object> details = taskManager.getFormDetails(appSessionURI, accessToken);
//System.out.println("Details :" + details);
String fileName = (String)details.get("fileName");
String refGene = (String)details.get("refgene");

3

solved Retrieve value in HashMap [closed]