/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package gazstation; /** * * @author denis */ public class MainClass { /** * @param args the command line arguments */ public static void main(String[] args) { Car[] cars = new Car[10]; for(int i =0 ; i<10 ; i++) { cars[i] = new Car("Carâ„–" + i); } for(Car car : cars) car.start(); } }