FileDocCategorySizeDatePackage
InnerMethods.javaAPI DocExample399Fri May 18 14:06:08 BST 2001None

InnerMethods

public class InnerMethods extends Object
Just to show that there is no such thing as inner methods in Java

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

		new InnerMethods().work();
	
public voidwork()

	// EXPECT COMPILE ERROR
		void inner() {
			System.out.println("Hey, there is such a thing as Inner Methods");
			System.out.println("in Java. Better tell James Gosling and Sun!");
		}
		inner();