title: I try to find a simple way in Java 8 stream API to do the grouping
body: <p>I try to find a simple way in Java 8 stream API to do the grouping.</p>
  
  <pre><code>Path caminho = Paths.get(System.getProperty("user.dir"), "log.txt");
  
  
  
      Files.lines(caminho, StandardCharsets.ISO_8859_1)
              .map(linha -&gt; {
                  return  getUrl(linha);
              })
              .filter(url -&gt; url != null)
              .collect(
                      Collectors.groupingBy(Arquivo::getUrl,
                              LinkedHashMap::new, Collectors.counting() ),
  
                      Collectors.groupingBy(Arquivo::getStatusCode,
                              LinkedHashMap::new, Collectors.counting()));
  </code></pre>
  
  <p>it is possible?</p>