PROBLEM - calculating with array elements

hey :) i'm a girl who's studying at the university and i have trouble with java. i hope someone can help. i have 3 arrays. 2 of them are with given elements. elements for third one i have to calculate (distance / speed = time).

int a=4; //length for all

int[]b={100, 150, 138, 196}; //distance

int[]c= {70, 110, 96, 87}; //speed

double[]d=new double[a]; //empty array for times

for(int i=0;i<4;i++){

System.out.print(b[i]+"km ");

System.out.print(c[i]+"km/h ");

d[i]=b[i]/c[i];

System.out.println(d[i]+"h");

}

and the problem is, it prints correctly the distance and speed but when it should calculate the time, then it gives me some kinda rounded result. for example 100/70=1.0 and 196/87=2.0 instead of 1.42 and 2.25... what is wrong?:confused: