我基本上是想調(diào)試下面的Type Promotion代碼來理解為x創(chuàng)建的臨時(shí)double變量。我怎樣才能做到這一點(diǎn)?public class TypePromotion {public static void main(String args[]){ int x = 10; double y = 20.0; double z = x + y; System.out.println("value of Z is :: "+z); // outputs 30.0 System.out.println("value of X is :: "+x); // outputs 10}}
添加回答
舉報(bào)
0/150
提交
取消