FileDocCategorySizeDatePackage
ReturnType.javaAPI DocExample449Sat Nov 25 12:55:46 GMT 2000None

ReturnType

public class ReturnType extends Object
Simple Hello World demo program.

Fields Summary
Constructors Summary
Methods Summary
java.lang.Stringdemo()

		return "Goodbye world";
	
voiddoTheWork()

		String d = demo();	// assigns "Goodbye cruel world" to d
		// int e = demo();		// EXPECT COMPILE ERROR
		int e = idemo();		// Get it right
		System.out.println("d="+d);
		System.out.println("e="+e);
	
intidemo()

		return 4;
	
public static voidmain(java.lang.String[] a)

		new ReturnType().doTheWork();