title: Java - Adding List<String> from parameter to existing list
body: <p>I want to be able to add new entries of parameter inputs to the list.</p>
  
  <p>For example:</p>
  
  <pre><code>public static void theList (List&lt;String&gt; wholeList) {
  
      wholeList = new ArrayList&lt;String&gt;();
      wholeList.add("Lettuce");
      wholeList.add("Bacon");
      wholeList.add("Milk");
  
      wholeList.add(wholeList); &lt;--------- error - addAll doesn't fix it.
  </code></pre>
  
  <p>Above I tried ' wholeList.add(wholeList) '. What I intended to do is: Whatever additional (item (from parameter), when adding the input to run this method) item I need to add, will be added to the ' wholeList '.</p>
  
  <p>As you can see, I have 3 items added to the list: Lettuce, Bacon and Milk. However, if I suddenly changed my mind, and want to add another item (via parameter), I can simply add it to the current list (wholeList).</p>
  
  <p>Also, another question.</p>
  
  <p>Is there a neater way to add a list of items instead of adding it one-by-one (whilst using the same list import)? Say, {"Lettuce", "Milk", "Bacon", etc}?</p>
  
  <p>TY.</p>