We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d48044 commit bed6928Copy full SHA for bed6928
innerclasses/GreenhouseController.java
@@ -3,7 +3,6 @@
3
// We make no guarantees that this code is fit for any purpose.
4
// Visit http://OnJava8.com for more book information.
5
// Configure and execute the greenhouse system
6
-// {java GreenhouseController 5000}
7
import innerclasses.controller.*;
8
9
public class GreenhouseController {
@@ -21,10 +20,8 @@ gc.new WaterOff(800),
21
20
gc.new ThermostatDay(1400)
22
};
23
gc.addEvent(gc.new Restart(2000, eventList));
24
- if(args.length == 1)
25
- gc.addEvent(
26
- new GreenhouseControls.Terminate(
27
- Integer.valueOf(args[0])));
+ gc.addEvent(
+ new GreenhouseControls.Terminate(5000));
28
gc.run();
29
}
30
0 commit comments