How to mark empty in a single element in a float array

Posted by Vineeth Mohan on Stack Overflow See other posts from Stack Overflow or by Vineeth Mohan
Published on 2012-11-28T16:55:32Z Indexed on 2012/11/28 17:04 UTC
Read the original article Hit count: 280

Filed under:
|
|

I have a large float (primitive) array and not every element in the array is filled. How can i mark a particular element as EMPTY. I understand this can be achieved by some special symbols but still i would like to know the standard way. Even if i am using some special symbol , how will i handle a situation where the actual data item is the value of special symbol. In short my question is how to implement the NULL feature in a primitive type array in java.

PS - The reason why i am not using Float object is to achieve a high memory and speed performance.

Thanks Vineeth

© Stack Overflow or respective owner

Related posts about java

Related posts about arrays