I stumbled upon this Java program line which is just simple arithmetic... but I don't understand why the outcome is 6, when it "should" be 5.25.
This is the program:
public class Test
public static void main(String args )
System.out.println( (3+1)/2*3 - 3/(1+3) );
When I run this program in command window, the program prints 6. On the calculator the answer is 5.25.