Passing hashmap as parameter to a method

I have hashmap and I need to pass its values to retrieveStatistics(HashMap) method and the result should be passed to a list for processing of another method. Can you please help me? Below is my code snippet.

S1RTDLG S1RTdelegate = new S1RTDLG();

HashMap hm = new HashMap ();

hm.put("ID", "S1RT");

hm.put("CODE_TYPE","T");

HashMap retrieveMap = S1RTdelegate.retrieveStatistics(hm);

//Not sure if this is correct.

List myList = (List) retrieveMap;

//I'm trying to pass the result to a list so I can use to another method which parameter should be a list.

List myList2...

Read More »

By: StackOverFlow - Thursday, 8 November

Related Posts