yes another thing
please understand the following i don't have the right code if i have it i wouldn't post here these functions were empty that was the assignment to complete them and compile
Type: Posts; User: cool_97
yes another thing
please understand the following i don't have the right code if i have it i wouldn't post here these functions were empty that was the assignment to complete them and compile
no i'm not
i'm working on it now
and i check if it's an error i put // to avoid the error in compiling
because this line codeTable=codeTable+bc; was underlined by red color
by the way...
didn't complete it yet trying to solve these three first
These are the classes that i'm working on now
import java.io.*;
import java.util.*;
class Huffman
{
private PriorityQ theQueue;
private String inString; // input from...
Exception in thread "main" java.lang.NullPointerException
at HuffmanApp.main(HuffmanApp.java:26)
Exception in thread "main" java.lang.NullPointerException
at HuffmanApp.main(HuffmanApp.java:29)...
no i'm just trying to fix these codes in post 13# and i have already posted the algorithm for it
and this is a forum for what's wrong with my code
if u have comment on this code or how to fix it...
i meant 13#
sry
queueTrees()
makeHuffTree()
makeCodeTable
but not sure if it's correct
plz visit thread # 14 i posted my effort
and i have already posted the algorithm
og each function and the purpose of it
thx
Ok let me explain
these three classes were given to us in class to complete the missing functions
the programme do the following
take a line of charecters then print them and encode them to...
these are the classes that i have u could compile but 3 out of four functions don't work
Enter first letter of enter, show, code, or decode: e
Enter text lines, terminate with $
cool
$
COOL\...
ok be a dear
and help me
in the following code is it correct
private void queueTrees() // put trees in queue
{
HuffmanApp a = new HuffmanApp();
for (int i...
7
hmmmmmmmmmmmmm
then i'm in the wrong forum
actually nothing is wrong put u could see in post # 4
there 4 empty functions need to fill them up and run the programme
will do
thx
main class
import java.io.*;
import java.util.*;
class HuffmanApp
{
public static void main(String[] args) throws IOException
here is the class huffman where i need help in the following functions
private void queueTrees(){
for each char in the frequancy table loop{
if freq =0 do nothing
else
creat a new node...
This is Node class
----------------
// huffman.java
// demonstrates Huffman trees
// to run this program: C>java HuffmanApp
import java.io.*;
import java.util.*; // for Stack...
Hi
I need help in the following code
664
there are some missing functions need to complete
QueueTree
makeHuffTree
makeCodeTable
decode