一般而言,移位操作符的处理速度快于算术运算
摘要:
示例代码如下 1 public class Test 2 3 { 4 5 public static void main(String[] args) 6 7 { 8 9 int low = 0;10 int high = 9;11 12 13 14 long startTime = System.currentTimeMillis();15 16 for (int i = 0; i < Integer.MAX_VALUE; ++i)17 {18 19 int tem... 阅读全文
posted @ 2011-12-21 15:36 cssin 阅读(372) 评论(0) 推荐(0)
浙公网安备 33010602011771号