if i have an array initialized to hold 500 objects :
Object array[] = new Object[500]
but i only populated certain number of objects in the array... ex: 300 of them
array.length will give me 500... how do i get the number of the used array? (it would be 300 in this case). is there any built in function to achieve this? thanks