FileDocCategorySizeDatePackage
ChangeArrayLength.javaAPI DocExample335Sat Nov 25 12:54:08 GMT 2000None

ChangeArrayLength

public class ChangeArrayLength extends Object
Can you change the .length of an array?
author
Ian F. Darwin, ian@darwinsys.com
version
$Id: ChangeArrayLength.java,v 1.3 2000/11/25 17:54:09 ian Exp $

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

		//+
		int[] a = new int[4];
		System.out.println(a.length);
		a.length = 5;
		//-