Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe07.iad.POSTED!83aa503d!not-for-mail From: Daniel Pitts User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: "Small" Program Challenge. References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Lines: 16 Message-ID: X-Complaints-To: abuse@newsrazor.net NNTP-Posting-Date: Wed, 13 Jun 2012 23:19:37 UTC Date: Wed, 13 Jun 2012 16:19:35 -0700 X-Received-Bytes: 1446 Xref: csiph.com comp.lang.java.programmer:15259 On 6/13/12 2:29 PM, Stefan Ram wrote: > Daniel Pitts writes: >> Where do I trim the 21 characters? > > You can trim the »args« to »a«. Ah, yes. That was just habit on my part. > Possibly, some earlier JDKs allowed > omission of the main method, but a recent JDK seems to require it. > The JDK doesn't require anything of a class. java on the other hand goes through a specific sequence when asked to "run" a Java program. My smallest program is still 61 characters long, the example I posted, after replacing args with a, is 79.