原帖由 ~Zero 于 2009-12-22 02:57 PM 发表
long a = 24 * 60 * 60 * 1000;
System.out.println(a);
long b = 30 * a;
System.out.println(b);
long c = 30 * 24 * 60 * 60 * 1000;
System.out.println(c);
结果出来,
a = 86400000
b = 259 ...
原帖由 qweasdzxc 于 2009-12-22 03:34 PM 发表
default is int value
但超过就会有负数
int is 32bit
正确答案
=========================
long a = 24 * 60 * 60 * 1000;
System.out.println(a);
long b = 30 ...
欢迎光临 JBTALKS.CC (https://jbtalks.my/) | Powered by Discuz! X2.5 |