Map 迭代

 
 

 

 com.informix.jdbc.IfxDriver

 

Map 迭代

public static Map<String, String> toUpperCaseParam(Map<String, String> param)

{

        Map<String, String> result = new HashMap<String, String>();

        for (Iterator iter = param.entrySet().iterator(); iter.hasNext();)

        {

            Entry entry = (Entry) iter.next();

            String key = (String) entry.getKey();

            String value = (String) entry.getValue();

            result.put(key.toUpperCase(Locale.US).trim(), value);

        }

        return result;

}

 

http://sd.csdn.net/a/20110512/297654.html





 


 

你可能感兴趣的:(Map 迭代)