public class Tester { public static void main(String[] args) { double x = 3/2.0; double y = 3/2; int z; z = (int) Math.round(x) + 5; System.out.println(z); z = (int) Math.round(y) + 5; System.out.println(z); } }