The posted code compiles for me fine in eclipse!
Type: Posts; User: Chewybakas
The posted code compiles for me fine in eclipse!
I just can't figure out whats wrong with this code. It compiles but just outputs no answer! The desired function is for a user to enter nicegroan for example, and for the java program to run through...
The code is to implement huffmans algorithm for compressing Strings, but that is all that is on the exam paper
Its an exam question which I have no idea how to approach! For example if the user inputs the string "The" the program will output 1010100 1101000 1100101
and 'T' appeared 1 time 'e' appeared 1...
I have been staring at this previous years exam question for hours now and I just can't get it working correctly. If anyone can help it would be greatly appreciated as I have an exam on Friday!
...