I have Java Commandline App where I'm using parameters when starting the .jar file. Parameters looks like
--exclude parent1=child1,child2;parent2=child3;parent3 
I want to convert the parameters to HashMap<String, String[]> where the key=parent1 and value=[child1,child2]
I tried with Streams and split() function but I can't convert the child strings to Array of Strings
Arrays.stream(gotData.split(";"))
            .map(s -> s.split("="))
            .collect(Collectors.toMap(s -> s[0], s -> s[1].split(",")));
 
    