Dave Tolls wrote:The toArray method of ArrayList only populates the supplied array if it is large enough to hold all the elements, otherwise it creates a new one of the correct size and returns that.
So your supplied [] is never populated, so all the entries are null.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Prathima gaitonde wrote:Any ways, Sorry for getting confused and messing up.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here