Parentheses
We can use parentheses to force a particular sequence of calculation, overriding the natural sequence described above. If in doubt, use parentheses!
Examples
2 * 3 + 1 // This results in 7. 1 + 2 * 3 // This also results in 7, since multiplication is performed before addition. (1 + 2) * 3 // This results in 9, since the parentheses force the addition to occur first. 1 + (2 * 3) // Generally, there's no harm in using extraneous parentheses. (((1 + 2))) * 3 // Nor is there any harm in using redundant parentheses.