title: How to return Arrays.asList() in ordered list<String>?
body: <p>I don't know this is duplicate or not. If so, please share the link as I don't find anyone yet.
  In my Java program, I have a String like following(String is created dynamically).</p>
  
  <pre><code>String header="Requirements ID,Requirements Number,Requirements Desc,Requirements Text,Requirements Date";
  </code></pre>
  
  <p>Now I am creating a List</p>
  
  <pre><code>List&lt;String&gt; csv = new ArrayList&lt;String&gt;(); 
  csv=Arrays.asList(header.split("\\s*,\\s*")); //splittng each phrase separated by comma
  </code></pre>
  
  <p>But I am not getting List value in an unordered way. I mean I get the list value like this</p>
  
  <pre><code>[Requirements Number,Requirements Date,Requirements Desc,Requirements ID,Requirements Text]
  </code></pre>
  
  <p>I know list is unordered. But I want the list <em>csv</em> be like this</p>
  
  <pre><code>[Requirements ID,Requirements Number,Requirements Desc,Requirements Text,Requirements Date]
  </code></pre>
  
  <p>So my question is how to get this in ordered way? Any possible solution?</p>