package com.sitdh.master.eaa.main;

public class A6Car {

	private B6CarEngine engine;
	
	public A6Car(B6CarEngine engine) {
		
	}
	
	public void startCar() {
		System.out.println("car> Starting the car");
		System.out.println(
				String.format(
						"car> Wake up engine No. %s (%s)", 
						this.engine.getEngineName(), 
						this.engine.getSerialNumber()
						)
				);
		engine.startEngine();
	}
}

@@ -120,16 +120,37 @@
 ne) %7B%0A%09%09
+this.engine = engine;
 %0A%09%7D%0A%09%0A%09p
@@ -414,13 +414,49 @@
 gine();%0A
+%09%09System.out.println(%22car%3E Ready%22);%0A
 %09%7D%0A%7D%0A

Add status message