Look at the printf() statement on line 91. The JVM does not like the format String: java.util.UnknownFormatConversionException: Conversion = 'i'
Type: Posts; User: Norm
Look at the printf() statement on line 91. The JVM does not like the format String: java.util.UnknownFormatConversionException: Conversion = 'i'
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.
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...
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.
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.
Please copy the full text of the error messages and paste it here. It has important info about the errors.