So, normally ArrayList.toArray()
would return a type of Object[]
….but supposed it’s an
Arraylist
of object Custom
, how do I make toArray()
to return a type of Custom[]
rather than Object[]
?
So, normally ArrayList.toArray()
would return a type of Object[]
….but supposed it’s an
Arraylist
of object Custom
, how do I make toArray()
to return a type of Custom[]
rather than Object[]
?