title: How to add prefix to all the elements of List efficiently?
body: <p>I have a List in which I need to add a prefix in all the elements of my list.</p>
  
  <p>Below is the way I am doing it by iterating the list and then adding it. Is there any other better way to do it? Any one-two liner that can do the same stuff?</p>
  
  <pre><code>private static final List&lt;DataType&gt; DATA_TYPE = getTypes();
  
  public static LinkedList&lt;String&gt; getData(TypeFlow flow) {
      LinkedList&lt;String&gt; paths = new LinkedList&lt;String&gt;();
      for (DataType current : DATA_TYPE) {
          paths.add(flow.value() + current.value());
      }
      return paths;
  }
  </code></pre>
  
  <p>I need to return LinkedList since I am using some methods of LinkedList class like <code>removeFirst</code>.</p>
  
  <p>I am on Java 7 as of now.</p>