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

Read more of this post