Created
July 19, 2019 04:06
-
-
Save Harshal96/2ccaa4960f791a093b7b9d5d816c9290 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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