private void swapDataMembers(TreeNode t1, TreeNode t2) { t1.p = t2.p; t1.left = t2.left; t1.right = t2.right; }
// Private method for swapping data // Copys t2 data into t1 private void swapData(TreeNode t1, TreeNode t2) { // System.out.println("SWAPPING: " + t1.p.toString() + " " + t2.p.toString()); t1.p = t2.p; }