Hi I have quiet a simple code that returns me an error
void changeHeaders(HttpURLConnection url){
Map<String, Iterable<String>> m ;
m = url.getHeaderFields();//<-- this line gives an error
...
}
The error is: Type mismatch: cannot convert from Map<String,List<String>> to Map<String,Iterable<String>>
Why I can not convert List to Iterable?