Question: I don't know how to answer this one CSC 115 (Fundamentals of Programming II), AOI/A02 c) consider the following class intended to represent nodes in
I don't know how to answer this one

CSC 115 (Fundamentals of Programming II), AOI/A02 c) consider the following class intended to represent nodes in some binary tree. Line numbers have been added for your reference. 1 public class TreeNode String item; TreeNode left, right public TreeNode(String iten) f 5 this.ite item this.left this, right-nu11; Write the Java statements needed to construct the binary tree shown below, including statements to create each node. Assume package-private access to the fields in TreeNode, and do not call BinaryTree methods in your answer. The reference to the tree's root must be stored in a variable named root. ( a method to contain your answer, and do not add methods to the class.) [15 marks) abo del ghi
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
