import java.util.Scanner; /** * @author Cristian * */ public class Solution { /** * Gets data from the dictionary file */ private Scanner input = null; /** * Start the execution of the solution * @param args Command line arguments */ public static void main(String args[]) { Solution solution = new Solution(); solution.run(); } /** * Run the solution. This method is called from main() */ public void run() { this.input = new Scanner(System.in); DisorderBinaryTree tree = new DisorderBinaryTree(); // Read the data while ( this.input.hasNextInt() ) { // Read the number int number = this.input.nextInt(); // Insert the number given into the three tree.insert(number); } // Close the standard input this.input.close(); } }