FileDocCategorySizeDatePackage
FinalArgs.javaAPI DocExample474Sun Feb 22 20:30:58 GMT 2004None

FinalArgs

public class FinalArgs extends Object
Experiment with "final" args to functions (new in 1.1)

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

		new FinalArgs().run();
	
voidmyFunc(java.util.Calendar d)

		// d = null;	// this will not compile
		d.set(Calendar.YEAR, 1999); // this will compile, and changes the object
	
voidrun()

		System.out.println("Hummm de dummm...");
		myFunc(Calendar.getInstance());
		System.out.println("Once upon a time...");