[Nottingham] A Little Coding Gem

Jason Irwin jasonirwin73 at gmail.com
Thu Nov 15 19:41:53 UTC 2012


On 15/11/12 19:12, Martin wrote:
> Two screamers are the uninitialised boolean and a missing "void" for main...
I just knew I was going to mess up if I dashed it off quickly.

public class myFixedClass
{
	private static Boolean myCheck;

	public static void main(String... args)
	{
		if (myCheck)
		{
			System.out.println("Hello world");
		}
	}
}

That one compiles.

Jason "Hanging head in shame" Irwin



More information about the Nottingham mailing list