I am using
ConcurrentHashMap for storing list of values to be fetched from XML file.
Ex.
ConcurrentHashMap<
String, String> paramMap = new ConcurrentHashMap<String, String>();
In new Case I needs to add
ArrayList and
String in paramMap
i.e. I want something Like ---
ConcurrentHashMap<String, ?> paramMap = new ConcurrentHashMap<String, ?>(); /// Generating Compiler Error
ConcurrentHashMap<String, ?> paramMap = new ConcurrentHashMap();/// Ok
paramMap("key","Value"); //Compiler error not allowed
paramMap("key",arrayList); //Compiler error not allowed
Capable of accepting any type., and implicit conversion to respective data type. i.e. either in
String or
ArrayList
Please help me If something is possible like that...