static List<PrintWriter> list = Collections.synchronizedList(new ArrayList<PrintWriter>());
for(PrintWriter writer : list){ writer.println(str); writer.flush(); }
어떤 의미로 작성된 소스인지 감이 안잡히네요..주석 좀 달아주시면 감사하겠습니다.
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Collections.html#synchronizedList%28java.util.List%29
http://java.sun.com/j2se/1.5.0/docs/guide/language/foreach.html
http://java.sun.com/j2se/1.4.2/docs/api/java/io/PrintWriter.html
이 정도면 힌트가 될까요?
---8< 서명 ----------------- 애니메이션 감상 기록 http://animeta.net/
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
http://java.sun.com/j2se/1.4.
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Collections.html#synchronizedList%28java.util.List%29
http://java.sun.com/j2se/1.5.0/docs/guide/language/foreach.html
http://java.sun.com/j2se/1.4.2/docs/api/java/io/PrintWriter.html
이 정도면 힌트가 될까요?
---8< 서명 -----------------
애니메이션 감상 기록 http://animeta.net/
댓글 달기