title: Stream to LinkedHashSet
body: <p>I want to save .csv to LinkedHashSet with natural order, so the first line of the .csv should be a first element of the LinkedHashSet.</p>
  
  <p>the file look like this:  </p>
  
  <pre><code>java  
  c  
  c++  
  assembly language  
  swift  
  </code></pre>
  
  <p>and my code like this:  </p>
  
  <pre><code>public class test {   
      public static void main(String[] args) throws IOException {         
           final Charset ENCODING = Charset.forName("Cp1250");
           Path fileToLoad = Paths.get("src/main/resources/test.csv");
           Set&lt;String&gt; x = Files.lines(fileToLoad, ENCODING)
                   .map(Function.identity())
                   .collect(Collectors.toSet());
  
           Iterator&lt;String&gt; it = x.iterator();
           while(it.hasNext()) {
               System.out.println(it.next());
           }
      }
  }
  </code></pre>
  
  <p>but it returns incorrect order:  </p>
  
  <pre><code>assembly language
  c++
  java
  c
  swift
  </code></pre>
  
  <p>I think that stream just save it as HashSet. </p>
  
  <p>Is it possible to save it as LinkedHashSet with stream?</p>