Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- maVen
- plugin
- Quartz
- tomcat
- import
- context
- 단축키
- netsh
- GIT
- ssh
- Eclipse
- find
- web.xml
- Windows
- 네트워크
- 줄바꿈 문자
- bash
- Source
- JavaScript
- IntelliJ
- Windows 10
- VirtualBox
- port
- grep
- xargs
- vscode
- resource
- Mac
- profile
- lsof
Archives
- Today
- Total
develog
[java] System.out::println, method reference 본문
code
List<String> list = new ArrayList<>();
list.add("aa");
list.add("bb");
list.add("cc");
System.out.println("---1");
for (String str : list) {
System.out.println(str);
}
System.out.println("---2");
list.forEach(s -> System.out.println(s));
System.out.println("---3");
list.forEach(System.out::println);
console
---1
aa
bb
cc
---2
aa
bb
cc
---3
aa
bb
cc
Comments