// Please note that this is a simple solution. There are other solutions you could create // For instance, changeState method could automatically change the light dependeing on the current state // You can create your own solution with your own analysis of the problem! // If you want to know your solution is acceptable, please show your solution to any TA. class StopLight { private String state; public String getState() { return state; } public void setState(String state) { this.state = state; } public void changeState(String state) { setState(state); } }