convert an int to double code example
Example 1: int to double java
Double d= new Double(i);//first way
Double d2=Double.valueOf(i);//second way
Example 2: int to double java
double d=i;
Double d= new Double(i);//first way
Double d2=Double.valueOf(i);//second way
double d=i;