Search:

Type: Posts; User: Norm

Search: Search took 0.08 seconds.

  1. Replies
    35
    Views
    5,750

    Re: Help Huffman Coding>>

    This code is NOT the same as post#13.
    You are working with different code than you have posted.
    Sorry, but my patience is gone. This is a big waste of time if you don't post the correct code.
    ...
  2. Replies
    35
    Views
    5,750

    Re: Help Huffman Coding>>

    Those are execution time errors. That means that your code compiles. The code you posted on post#13 does NOT compile. More confusion????
    Post the code that you have for the makeCodeTable method.

    ...
  3. Replies
    35
    Views
    5,750

    Re: Help Huffman Coding>>

    Please copy and paste here the compiler error messages you are getting.
    Without them I can't help you fix your program.
  4. Replies
    35
    Views
    5,750

    Re: Help Huffman Coding>>

    The code you posted on post#13 does not compile.
    Please don't post code that has compiler errors. I assume that you are trying to get this project working and are not just posting junk code hoping...
  5. Replies
    35
    Views
    5,750

    Re: Help Huffman Coding>>

    Some confusion here. post#14 is my post.

    What methods are the ones that you wrote?

    Look at my post #17.
    I need the input for testing the code.
    I want it to come from a String as per #17, not...
  6. Replies
    35
    Views
    5,750

    Re: Help Huffman Coding>>

    Another comment on the coding style: too many methods are static. There should be a short main and the rest of the code should be in the constructor:


    public static void main(String[] args) { ...
  7. Replies
    35
    Views
    5,750

    Re: Help Huffman Coding>>

    You have too many "magic" numbers in your code in place of self defining literals. That makes it impossible for anyone reading the code to easily understand what it is doing.
    For example:
    char sp =...
  8. Replies
    35
    Views
    5,750

    Re: Help Huffman Coding>>

    To test your code there needs to be correct input. Here is a technique to make sure that everyone uses the same input. Put the input into a String and use the Scanner class.



    static Scanner...
  9. Replies
    35
    Views
    5,750

    Re: Help Huffman Coding>>

    For this error, look at line 76 and see what variable can be null. Then back track to see why that variable does not have a valid value.
    If you can't tell which variable is null, add a println...
  10. Replies
    35
    Views
    5,750

    Re: Help Huffman Coding>>

    Does your program output the correct result?
    If not, please explain what is wrong with the output and show what it needs to look like.

    You've posted bits and pieces of your code, but I'm not sure...
  11. Replies
    35
    Views
    5,750

    Re: Help Huffman Coding>>

    Yes, If you expect someone here to write your code for you.
  12. Replies
    35
    Views
    5,750

    Re: Help Huffman Coding>>

    Are you thinking that someone here is going to write the code for your "functions"? (methods in java)
  13. Replies
    35
    Views
    5,750

    Re: Help Huffman Coding>>

    Thanks for using code tags.

    What is your problem with the code you posted? I don't see any questions about your code.
  14. Replies
    35
    Views
    5,750

    Re: Help Huffman Coding>>

    Please edit your code and wrap it in code tags. Use Go Advanced and the # icon.

    What is your problem with the code you posted? I don't see any questions about your code.
  15. Replies
    35
    Views
    5,750

    Re: Help Huffman Coding>>

    You need to show the code you have with comments that describe how you are implementing the algorithm and your questions about the problems you are having.

    You better put in a little more effort...
Results 1 to 15 of 15