> If I do this:
>
[quoted text clipped - 9 lines]
>
> Why?
Because the static type (the type you declared) of the arguments
variable is not an array. Change the declaration: Object[] arguments
= new Object[8].
Owen
John Bailo - 06 Jun 2007 00:18 GMT
>> If I do this:
>>
[quoted text clipped - 15 lines]
>
> Owen
DUH!
Thanks>>>>
>Object arguments = new Object[8];
>arguments[0]= "John";
public class Main
{ public static void main( final java.lang.String[] args )
{ final java.lang.Object array = new java.lang.Object[ 8 ];
java.lang.reflect.Array.set( array, 0, "Alpha" );
java.lang.System.out.print
( java.util.Arrays.toString(( java.lang.Object[] )array )); }}
[Alpha, null, null, null, null, null, null, null]