When trying to call an inner-class, I am getting 'cannot find symbol - constructor Node()'.
Below is my code:
public class Compress {
...
public void compress(InputStream in, OutputStream out) {
...
Node n = new Node();
n.makeHuffmanTree(in);
}
class Node implements Comparable<Node> {
Node left;
Node right;
Node parent;
String chara;
int frequency;
HashMap<Character,Integer> map;
HashMap<Character,String> treeMap;
int position;
...
public void makeHuffmanTree(InputStream in) {
findFreq(in);
String[] charStr = new String[map.size()];
String[] freqStr = new String[map.size()];
Set entries = map.entrySet();
Iterator entriesIterator = entries.iterator();
String chara[];
...
}
}
}
Not quite sure what is happening here? Any ideas?