Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save Harshal96/dd0fd907eaf5d65f28faead936b4a3a8 to your computer and use it in GitHub Desktop.
class Test2 {
public static void main(String[] s) {
long st = System.currentTimeMillis();
List<String> l0 = new ArrayList<String>();
l0.add("Hello");
l0.add("World!");
List<String> l1 = new ArrayList<String>();
l1.add("Hello");
l1.add("World!");
/* snip */
List<String> l999 = new ArrayList<String>();
l999.add("Hello");
l999.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