Storing object into an array - Java
问题 I am relatively new to Java and I have taken some light courses on it. I am trying to emulate an exercise that I had a while back and I am having some trouble. I have two classes. One is taking in data and the other is storing it. public class Car{ public Car(String name, String color) { this.name = name, this.color = color } How can I store this into the array (not an array list) that I created in this class: public class CarDatabase { Car[] carList = new Car[100]; public CarDatabase() { //