Please read all of this before commenting! Thank you!
Im fairly new to Java, i use the BlueJ software to develop my programs.
I am creating a program which holds two data structures; Array List and Binary Tree. I have created a person class which is used to declare variables containing people, this class also contains a method which prompts the user to input 3 characters of a memorable word. These people are created within the array list and binary tree. This actually works in practice, within the program, but i get an error, and i need the program to contain no errors.
In my binary tree class, i want to call this method.
I have attached 4 images to this post, an overview of the classes used, a look at highlighted code which is an attempt at calling a method from the person class, and the method contained within the person class itself. Note that the person class is just called "Person". The 4th image is the error being displayed.
And moderators, if this post is in the wrong place can you please move it as opposed to deleting it, i spent time typing this up and i am going to bed.
overview.jpgnonworkingcode.PNGpublicvoidmethod.PNGerror.jpg