1 long t = System.currentTimeMillis(); 2 Long sum = 0L; 3 for (long i = 0; i < Integer.MAX_VALUE; i++) { 4 sum += new Long(i); 5 } 6 System.out.println("toplam:" + sum); 7 System.out.println("islem süresi: " + (System.currentTimeMillis() - t) + " ms") ; 8