ChangeArrayLengthpublic class ChangeArrayLength extends Object Can you change the .length of an array? |
Methods Summary |
---|
public static void | main(java.lang.String[] argv)
//+
int[] a = new int[4];
System.out.println(a.length);
a.length = 5; // EXPECT COMPILE ERROR
//-
|
|