SyntaxFix
Write A Post
Hire A Developer
Questions
USING JAVA 8:
Map<String, String> headerMap = Arrays.stream(header.split(",")) .map(s -> s.split(":")) .collect(Collectors.toMap(s -> s[0], s -> s[1]));