title: Convert ArrayList to LinkedList
body: <p>If I want to change this implementation from <code>ArrayList</code> to <code>LinkedList</code> do I just have to change</p>
  
  <pre><code>ArrayList&lt;Character&gt; characters = new ArrayList&lt;Character&gt;();
  </code></pre>
  
  <p>to</p>
  
  <pre><code>LinkedList&lt;Character&gt; characters = new List&lt;Character&gt;();
  </code></pre>
  
  <p>Or how do I do this?</p>
  
  <pre><code>ArrayList&lt;Character&gt; characters = new ArrayList&lt;Character&gt;();
  try {
      while((str = bufferedReader.readLine()) != null){
          char [] characterArray = str.toCharArray();
  
          for (int i = 0; i &lt;  characterArray.length; i++){
  
              characters.add(characterArray[i]);
          }
      }
  } catch (IOException e) {
      e.printStackTrace();
  }
  char [] patternArray = phrase.toCharArray();
  ArrayList&lt;Character&gt; pattern = new ArrayList&lt;Character&gt;();
  for (int i = 0; i &lt;  patternArray.length; i++) {
  
      pattern.add(patternArray[i]);
  }
  </code></pre>