0

hi all, this is some extra credit from class we sat around cleaning up code today this is what we came up with

```
public boolean equals2(IntTree t2){
return equals2(this.overallRoot, t2.overallRoot);
}
private Boolean equals2(IntTreeNode r1, IntTreeNode r2){
if(r1 == null || r2 == null){
return r1 == null && r2 == null;
}
return ((r1.data==r2.data)&& equals2(r1.left, r2.left) && equals(r1.right, r2.right));
}
```

we get five points extra credit if we can shorten any further. So my question iscan someone explain to me the ^ character and is that the right path to shortening this code