I have map of string and array of strings as:
private static Map cacheTimeStamp = new HashMap<String, String[]>();
now how do i get value of this Map, i want to return array of String[] back to the calling function, tried using cacheTimeStamp.get("stringKey") but it returns object and i want to get array of strings out.
Define your map like this:
Problem is that you are defining an open map without specifying map’s key and value object types. Which is essentially a key of type
java.lang.Objectand a value of typejava.lang.Object.