how to add objects in array java

Java
car redCar = new Car("Red");
car Garage [] = new Car [100];
Garage[0] = redCar;
Source

Also in Java: