static int a = 4; double x = (double) a; In Java, the following widening conversions are possible: ➤ From a byte to a short, an int, a long, a float, ...
確定! 回上一頁