This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int[] original = new int[]{1,3,5,7,9,12,15,18,21,24,27,30}; | |
long startTime = System.nanoTime(); | |
System.arraycopy(original,0,copy2,original.length); | |
System.out.println("arraycopy: %10d ns%n",System.nanoTime() - startTime); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HelloWorld{ | |
String name = "INITIAL"; | |
public static void main() { | |
//TODO: remove this comment | |
String str = new StringBuilder("Hello").append(" World of Gists!").toString(); | |
System.out.println(str); | |
return; | |
} | |