Skip to content

Commit bed6928

Browse files
committed
Remove command-line option
1 parent 6d48044 commit bed6928

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

innerclasses/GreenhouseController.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://OnJava8.com for more book information.
55
// Configure and execute the greenhouse system
6-
// {java GreenhouseController 5000}
76
import innerclasses.controller.*;
87

98
public class GreenhouseController {
@@ -21,10 +20,8 @@ gc.new WaterOff(800),
2120
gc.new ThermostatDay(1400)
2221
};
2322
gc.addEvent(gc.new Restart(2000, eventList));
24-
if(args.length == 1)
25-
gc.addEvent(
26-
new GreenhouseControls.Terminate(
27-
Integer.valueOf(args[0])));
23+
gc.addEvent(
24+
new GreenhouseControls.Terminate(5000));
2825
gc.run();
2926
}
3027
}

0 commit comments

Comments
 (0)