for (int i = 0; i < bitString.length(); i++)
writeBit(bitString.charAt(i));
}
2. In your program, you need to read the Huffman codes from the .counts file,
create a Huffman tree from the codes, and then use the Huffman tree to decode
the .new file to generate the new target file.
Submit the following items:
1. Compile and Submit to LiveLab (you must submit the program regardless whether it
complete or incomplete, correct or incorrect)
2. Fill in self-evaluation:
1. Can your program read codes from the file? _______________
2. Can your program build a Huffman tree from the codes? _______________
3. Can your program read the input file and decode it using the Huffman tree?
_______________
4. Can your program handle very large files (e.g., 1GB)? _______________