int, um Java zu verdoppeln
Double d= new Double(i);//first way
Double d2=Double.valueOf(i);//second way
Witty Whale
Double d= new Double(i);//first way
Double d2=Double.valueOf(i);//second way
class Main {
public static void main(String[] args) {
// create int type variable
int num = 10;
System.out.println("The integer value: " + num);
// convert into double type
double data = num;
System.out.println("The double value: " + data);
}
}