I need to know that if everything okay in my BTS put and get method
Since the code is not compiling, it will be hard to do a proper code review.

In my opinion, you should rename the variable cmd in both of the methods, since it can be confusing.

BinaryTree#put method


In my opinion, it's a bad choice to use the range operators (&lt;, >, &lt;=, >=) with the compareTo method; since you always get one of those values (-1, 0 &amp; 1).
I suggest that you check if the values are equals before checking if they are inferior / superior; this will alow you to merge some of the logic of the inferior / superior since they are pretty similar.



if (cmd == 0) {
   current.value = newNode.value;
   break;
}

if (cmd == 1) {
   //[...]
}
```