티스토리 뷰

공부

Initialization of an ArrayList in one line

승가비 2019. 6. 25. 22:47
728x90

List<String> strings = Arrays.asList("foo", "bar", "baz");

List<String> strings = Arrays.asList("foo", "bar", "baz");

 

[출처] https://stackoverflow.com/questions/1005073/initialization-of-an-arraylist-in-one-line

728x90

'공부' 카테고리의 다른 글

css calc(% - px)  (0) 2019.06.25
use `package.json`  (0) 2019.06.25
`/etc/hosts` update in mac  (0) 2019.05.08
check process from port  (0) 2019.05.08
[Regex] Don't match line  (0) 2019.02.22
댓글