# Binary Tree in Java

**URL:** <https://forum.kirupa.com/t/binary-tree-in-java/299305>\
**Category:** programming\
**Created:** [November 3, 2009, 7:12am UTC](https://forum.kirupa.com/t/binary-tree-in-java/299305 "2009-11-03T07:12:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel\_mihalcea](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@daniel\_mihalcea](https://forum.kirupa.com/u/daniel_mihalcea)\
**Post date:** [November 3, 2009, 7:12am UTC](https://forum.kirupa.com/t/binary-tree-in-java/299305/1 "2009-11-03T07:12:20Z")

</div>

Hi there.  
I have a homework at school and I don’t know where to start.  
It is about a binary tree with some properties and I have to create a data type NODE and the operators(search, add, delete).  
After I made the node I will have to make:

1. the add operation for a node in the binary tree.
2. the search operation of a value using a minimum number of operations and if the value was find I will have to return the number of nodes until that point, else return -1.

My problem is that I don’t know where to start.  
I am looking for a hint or to find that NODE data type somewhere on the internet.

Thank you.  
Regards, Daniel.
