[3286] in java-interest

home help back first fref pref prev next nref lref last post

arrays of instances of objects

daemon@ATHENA.MIT.EDU (nrc2)
Mon Nov 6 12:42:53 1995

To: java-interest@java.sun.com
Date: Mon, 06 Nov 1995 11:44:17 +0000
From: nrc2 <nrc2@aber.ac.uk>

I'm having trouble defining an array of instances of objects

I have a class called TreeNode that is a node of a Binary Tree and I
want to declare an array of instances of this.  I've tried

TreeNode Tree[] = new TreeNode[16];

but this seems to declare an array of null pointers.

Thanks.

Neil
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post