906738 wrote:Perhaps you should try to find the source of your memory problems in stead of doing your very best to not have to do that; the way you're trying to "solve" things now is only going to lead to epic failure, I mean you're now as far gone as trying to not create objects in an object oriented language.
Thanks for your reply.
I had done those things earlier like you said, the application i am using is frequently running out of memory i don't want to use more objects. If i am converting to list then it will create the another object to hold the elements of the hash set. Because of this only i am seeking for any other API is available.