title: Huffman encoding: The constructor HuffmanCoding(Map<Character,List<Boolean>>, List<Character>) is undefinedJava(134217858)
body: <p>this is the code from Huffman.java</p>
  <pre><code>public static HuffmanCoding encode(String input) {
          char ch;
          Map&lt;Character, List&lt;Boolean&gt;&gt; inputData = buildCode(treeFromFreqTable(freqTable(input)));
          List&lt;Character&gt; mylist = new ArrayList&lt;Character&gt;();
  
          for (int i = 0; i &lt; input.length(); i++) {
              ch = input.charAt(i);
              mylist.add(ch);
          }
          HuffmanCoding huffman = new HuffmanCoding(inputData, mylist);
          return huffman;
      }
  </code></pre>
  <p>this is the code from HuffmanCoding.java</p>
  <pre><code>public class HuffmanCoding implements Serializable {
  
      private final Map&lt;Character, List&lt;Boolean&gt;&gt; code; // The code.
      private final List&lt;Boolean&gt; data;                 // The data.
  
      public HuffmanCoding(Map&lt;Character, List&lt;Boolean&gt;&gt; code, List&lt;Boolean&gt; data) {
          this.code = code;
          this.data = data;
      }
  </code></pre>
  <p>it shows this error</p>
  <pre><code>java: incompatible types: java.util.List&lt;java.lang.Character&gt; cannot be converted to java.util.List&lt;java.lang.Boolean&gt;
  </code></pre>
  <p>and</p>
  <pre><code>The constructor HuffmanCoding(Map&lt;Character,List&lt;Boolean&gt;&gt;, List&lt;Character&gt;) is undefinedJava(134217858)
  </code></pre>