You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
572 B
25 lines
572 B
/* |
|
* 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(); |
|
} |
|
|
|
}
|
|
|