Skip to content

Instantly share code, notes, and snippets.

@Harshal96
Created July 19, 2019 04:06
Show Gist options
  • Select an option

  • Save Harshal96/2ccaa4960f791a093b7b9d5d816c9290 to your computer and use it in GitHub Desktop.

Select an option

Save Harshal96/2ccaa4960f791a093b7b9d5d816c9290 to your computer and use it in GitHub Desktop.
class Test1 {
public static void main(String[] s) {
long st = System.currentTimeMillis();
List<String> l0 = new ArrayList<String>() {{
add("Hello");
add("World!");
}};
List<String> l1 = new ArrayList<String>() {{
add("Hello");
add("World!");
}};
/* snip */
List<String> l999 = new ArrayList<String>() {{
add("Hello");
add("World!");
}};
System.out.println(System.currentTimeMillis() - st);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment