Search:

Type: Posts; User: jocdrew21

Search: Search took 0.08 seconds.

  1. Replies
    13
    Views
    857

    Re: Binary Trees:

    ahhhhhhh.... Thanks norm...
  2. Replies
    13
    Views
    857

    Re: Binary Trees:

    Ok I did it and my compiler was very unhappy. I tried a few things and it runs but I have several run time errors now.

    Exception in thread "main" java.util.UnknownFormatConversionException:...
  3. Replies
    13
    Views
    857

    Re: Binary Trees:

    Sorry:

    Exception in thread "main" java.lang.Error: Unresolved compilation problem:
    This method must return a result of type InnerClass.tree

    at InnerClass.search(InnerClass.java:74)
    at...
  4. Replies
    13
    Views
    857

    Re: Binary Trees:

    public class InnerClass implements UsingInterface
    {
    public class tree //inner class
    {
    int number;
    tree left;
    tree right;
    }

    private tree root;
  5. Replies
    13
    Views
    857

    Re: Binary Trees:

    Once I get home I will do that, but did you happen to read the rest of my posts questions?
  6. Replies
    13
    Views
    857

    Re: Binary Trees:

    Here is something odd too, when I put in Integer instead of int I do not get any errors until I run the program. I have listed the runtime error in the above post and at the end of the first posts...
  7. Replies
    13
    Views
    857

    Re: Binary Trees:

    I attached them to the end of the code in the first post.



    Inner Class constructer called and root is null
    Exception in thread "main" java.lang.NullPointerException
    at...
  8. Replies
    13
    Views
    857

    Binary Trees:

    public class InnerClass implements UsingInterface
    {
    public class tree //inner class
    {
    int number;
    tree left;
    tree right;
    }

    private tree root;
Results 1 to 8 of 8