Right. There are classes which run in Java, but jlinker complains about.
That's my point. My original example HAD a constructor. But jlinker gave
me an error anyway.
Patrick Beeson
<cs.utexas.edu at pbeeson>
http://www.cs.utexas.edu/users/pbeeson/
On Thu, 16 Aug 2001, Jeff Dalton wrote:
> > This information can be found in any Java book introducing the
> > language Java ...
>
> Actually, I don't think it's all that obvious why the example didn't
> work, because, for instance, the following does work if I just compile
> and run it using Java:
>
> class Test2 {
>
> static class HelloWorld {
> HelloWorld (String str) {
> System.out.println(str);
> }
> }
>
> public static void main(String[] argv) {
> new HelloWorld("apple");
> }
>
> }
>
> -- Jeff
>