double s = 5.0; int s1 = (int)s; 这个是可以的。 为什么下面这个不可以呢? Double a=java.lang.Math.random()*20; int b=(int)a; ...
確定! 回上一頁