Key takeaway: In Java, / between integers performs integer division (truncates the decimal part). That’s why 5 / 2 becomes 2, not 2.5.
Would you like me to also show you a visual precedence diagram (like a stepwise tree) so you can see how Java evaluates x * y / x vs x * (y / x)? That would make the difference crystal clea