Search:

Type: Posts; User: Norm

Search: Search took 0.10 seconds.

  1. Thread: Binary Trees:

    by Norm
    Replies
    13
    Views
    844

    Re: Binary Trees:

    Look at the printf() statement on line 91. The JVM does not like the format String: java.util.UnknownFormatConversionException: Conversion = 'i'
  2. Thread: Binary Trees:

    by Norm
    Replies
    13
    Views
    844

    Re: Binary Trees:

    I suggested that the method NOT return a tree. User's should NOT have to know about tree objects.
    Either return the value in the node or true/false.
  3. Thread: Binary Trees:

    by Norm
    Replies
    13
    Views
    844

    Re: Binary Trees:

    Is that the full text? It looks like it is missing the first line(s). Look at line 74 and find what has the null value.


    The inner class should be kept a secret. search() should return true or...
  4. Thread: Binary Trees:

    by Norm
    Replies
    13
    Views
    844

    Re: Binary Trees:

    int is a primitive, Integer is a class. Only class objects can be dereferenced. You can not call a method using a primitive like an int as reference.
  5. Thread: Binary Trees:

    by Norm
    Replies
    13
    Views
    844

    Re: Binary Trees:

    There is a null value when line 23 is executed. Look at line 23 and find the variable with the null value and then backtrack to see why it is null and why the code tried to use a null value.
  6. Thread: Binary Trees:

    by Norm
    Replies
    13
    Views
    844

    Re: Binary Trees:

    Please copy the full text of the error messages and paste it here. It has important info about the errors.
Results 1 to 6 of 6