Map<String, String> map; try(Stream<String> pairs = Arrays.asList(new String[]{"profile=native", "debug=true", "logging=warn", "interval=500"}).stream()){ map = pairs.collect(Collectors.toMap(s -> s.split("=")[0], s -> s.split("=")[1])); }
Sign in to make a reply
icm162