CVGalleryGamesPreviewRandomJavaSiteWeb
Site updates
Testing New System now...

'class' or 'interface' expected

This error occurs when there is code outside of a class declaration. The usual cause of this is when you're declaring a few objects at the start of the class, and mistakenly place them before the class has started.

String foo = new String();
	 
public class MonkeyFarmer
{

becomes

public class MonkeyFarmer
{
	String foo …
NOTE: The Java section is mostly in maintenence mode. I don't have time to work on it right now. Errors will be corrected if pointed out, but they are not actively being searched for. Newer site features, like alternate stylesheets, may cause problems with these pages.