Why am i getting this error
public void getParameters(Map<String,Object> param){
}
public void test(){
Map<String,String[]> testMap = new HashMap<String,String[]>();
getParameters(testMap); // type is not applicable error here
}
since i can pass String array to object like below. Can someone explain this please ?
public void getParameters(Object param){
}
public void test(){
String[] testArray = new String[10];
getParameters(testArray);
}