title: Java List<string> not adding to list after Arrays.asList() has been used
body: <p>I'm trying to do the following in Java:</p>
  
  <pre><code>String pageName = "MyPage";
  String pageSpace= "SpaceA.SpaceB";
  List&lt;String&gt; spaceList = new ArrayList&lt;String&gt;();
  String[] spaceArr = pageSpace.split("\\.");
  spaceList = Arrays.asList(spaceArr);
  spaceList.add(pageName);
  </code></pre>
  
  <p>Why am I not able to add a string to the list? 
  I can do spaceList.get(0) and spaceList.get(1) which returns "SpaceA" and "SpaceB" but spaceList.get(2) fails which should return "MyPage".</p>