hello friends,
I got a problem with an object array.I'll write a sample code for understand the problem.I declared an array of objects named item.
item[] itemAr = new item[100];
And then I initialized some of them
itemAr[0]=****;
itemAr[1]=****;
itemAr[2]=****;
I want to know that is there a way to find out how many array elements are initialized like this.(In this case its just 3).I tried with item.length
but it returns 100 which is the size of array.
thank you all.