ahhhhhhh.... Thanks norm...
Type: Posts; User: jocdrew21
ahhhhhhh.... Thanks norm...
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:...
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...
public class InnerClass implements UsingInterface
{
public class tree //inner class
{
int number;
tree left;
tree right;
}
private tree root;
Once I get home I will do that, but did you happen to read the rest of my posts questions?
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...
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...
public class InnerClass implements UsingInterface
{
public class tree //inner class
{
int number;
tree left;
tree right;
}
private tree root;