1 package net.obsearch.example; 2 3 public class BlockGeneration { 4 5 public static void main(String[] args){ 6 long i = 0; 7 long start = System.currentTimeMillis(); 8 while(i < Integer.MAX_VALUE){ 9 i++; 10 } 11 12 System.out.println("Time:" + (System.currentTimeMillis() - start)); 13 14 start = System.currentTimeMillis(); 15 char[] res = "Hello mYeah it has charted and they've broken the club/dance charts here! they often chart highly in the dance chart. Ive heard their songs in clubs plenty of times :)".toCharArray(); 16 System.out.println("Time:" + (System.currentTimeMillis() - start)); 17 18 start = System.currentTimeMillis(); 19 String r = new String(res); 20 System.out.println("Time:" + (System.currentTimeMillis() - start)); 21 22 } 23 24 }