Map<String, List<String>> parameters;
Map<String, String[]> collect = parameters.entrySet().stream()
.collect(Collectors.toMap(entry-> entry.getKey(),entry -> entry.getValue().toArray()));
I'm getting compiler error cannot resolve method 'getKey()'