Check out example codes for "int to double java". It will help you in understanding the concepts better.

Code Example 1

Double d= new Double(i);//first way  
Double d2=Double.valueOf(i);//second way  

Code Example 2

double d=i;

Learn ReactJs, React Native from akashmittal.com