Search:

Type: Posts; User: Norm

Search: Search took 0.08 seconds.

  1. Replies
    16
    Views
    1,931

    Re: Searching a word in a compressed file

    Do you have any more questions about your program? Is so, post them.
  2. Replies
    16
    Views
    1,931

    Re: Searching a word in a compressed file

    What variable has the null value? How did it get a null value?

    Note: Some methods return a null value when they are called if they can not find any data.
  3. Replies
    16
    Views
    1,931

    Re: Searching a word in a compressed file

    There is a variable with a null value when line 20 is executed. Look at line 20, find the variable with the null value and then backtrack in the code to see why that variable does not have a valid...
  4. Replies
    16
    Views
    1,931

    Re: Searching a word in a compressed file

    Make sure all the catch blocks have a call to the printStackTrace() method. The error message will give the line number where the error happens.
  5. Replies
    16
    Views
    1,931

    Re: Searching a word in a compressed file

    Please copy the full text of the error message and paste it here. It has important info about the error. Make sure all the catch blocks have a call to the printStackTrace() method.

    What variable...
  6. Replies
    16
    Views
    1,931

    Re: Searching a word in a compressed file

    Please copy the full text of the error message and paste it here. It has important info about the error.

    Add a call to the printStackTrace() method to the catch block to get the full error message.
  7. Replies
    16
    Views
    1,931

    Re: Searching a word in a compressed file

    Please edit your post and wrap your code with code tags:


    YOUR CODE HERE

    to get highlighting and preserve formatting.

    This is an example of hardcoding. I meant to code it in the program...
  8. Replies
    16
    Views
    1,931

    Re: Searching a word in a compressed file

    Start with the simple, easy to do part of the program.
    Hardcode the filename of the compressed file in your program. Then using the File class create a File object and print out some statistics...
Results 1 to 8 of 8