Last active
May 20, 2018 08:50
-
-
Save jwalgemoed/7e60f1e8b3626047be2616142eb3eb59 to your computer and use it in GitHub Desktop.
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
// Classic declaration | |
ArrayList<Integer> list = new ArrayList<Integer>(); | |
// But honestly, since Java 7 Java we can use the diamond operator <> (or omit it entirely) | |
ArrayList<Integer> list = new ArrayList(); | |
// Var declaration | |
var list = new ArrayList<Integer>(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment