weird java math?

I read the variables a,b,c, and d.and then I entered:System.out.println((b*i)/d);where i =2, b=7, and d=8. (a and c dont matter right now)Very simple, yes?Then why does it say that (b*1)/d = 1?
[235 byte] By [@_-.-_@a] at [2007-11-27 4:02:45]
# 1
2 * 7 = 1414 / 8 = 1 (integer operation)What did you expect would happen?
paulcwa at 2007-7-12 9:07:30 > top of Java-index,Java Essentials,Java Programming...
# 2
ah oh yeah you can't use integer.
@_-.-_@a at 2007-7-12 9:07:30 > top of Java-index,Java Essentials,Java Programming...
# 3
You can use integer, but not if you want double arithmetic (and you're not otherwise using doubles or casting to double).
paulcwa at 2007-7-12 9:07:30 > top of Java-index,Java Essentials,Java Programming...
# 4
If you make a cast at the end your result will be 1.0. If you expect 1.75 then you will need to cast one of the variables.
floundera at 2007-7-12 9:07:30 > top of Java-index,Java Essentials,Java Programming...