When trying to compile program demonstrating the use of Binary Search Tree inside terminal, javac throws error on some line in my code.
Although when compiling exactly the same code within (https://www.jdoodle.com/online-java-compiler) no error encountered and works just fine.
Here's the actual code that i have to deal with. https://codeshare.io/5Z03ve
Expected Output is:
Node with the key 75
Sales Manager has the key 75