Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: "javax.swing.JSnarker" Newsgroups: comp.lang.java.programmer Subject: Re: "Small" Program Challenge. Date: Wed, 13 Jun 2012 21:28:27 -0400 Organization: media lab? Lines: 22 Message-ID: References: NNTP-Posting-Host: c1nYlstvu7yUMgW+DXXBUA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: NewsTap/3.5.5 (iPhone/iPod Touch) X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:15263 On 13/06/2012 4:45 PM, Daniel Pitts wrote: > I saw a challenge Roedy posted on cljh, and I thought I might have a > slightly more interesting one. > > Write a Java program which outputs "Hello World" followed by a new line > (and nothing else). > > Now, do it using as few characters in the .java source code as possible. > > I've got mine down to 61 characters. See if you can match that. class X{static{System.out.println("Hello World");for(;;);}} is 59 characters. Hey, you didn't say it has to actually *terminate*! ;) -- public final class JSnarker extends JComponent A JSnarker is an NNTP-aware component that asynchronously provides snarky output when the Ego.needsPuncturing() event is fired in cljp.