I'm using java 1.5, how do we use toArray? I have something like:
public class Car
ArrayList<Car> cars = new ArrayList<Car>();
Car test = cars.toArray();
Yeah I just need a plain array representation of the array list.
Will the produced array be a reference to the original ArrayList, or is it a completely new object (so changes to one will not affect the other?)