Created
June 12, 2016 08:59
-
-
Save liangfeidotme/8499bf58ee10d38080e1ac07bad73630 to your computer and use it in GitHub Desktop.
Create an array in declaration.
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 static List<String> githubList = new ArrayList<String>() {{ | |
add("linkedin"); | |
add("tumblr"); | |
add("square"); | |
add("google"); | |
add("stripe"); | |
add("angular"); | |
add("facebook"); | |
add("rails"); | |
}}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment