I have written a simple Java program as shown here:
public class Test { public static void main(String[] args) { int i1 =2; int i2=5;
This link provides information about data type conversion, both implicit and explicit type.
To provide exact answer to the question will be :
double d = 3 + (double)i1/i2 + 2