I am very confused on how the output gives me 7.5. I understand the part where it outputs a double but no clue why 7.5. I tried doing it myself following the rules to my knowledge and I got 6. If anyone could help me with understanding what java does to get the answer 7.5
public class pc1 {
public static void main(String[] args) {
System.out.println((double) (10 / 4) * (int) 10.0 / 4 + (double) 10 / 4);
}
}