Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How To Assign Null Value to An Array Member

807600Nov 5 2007 — edited Nov 6 2007
For example, I want to assign a null value to a double type array member:
array[ 0 ] = null;

But error appears, saying that type mismatch. So I want to know how to assign null value to an array member (double, int, anything).

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 4 2007
Added on Nov 5 2007
10 comments
1,194 views