The assignment says "get the current speed of the car and display it". You do not!
So.. you should display the speed of the car when you accelerate and brake.
rxlim
Junior Poster in Training
51 posts since Feb 2011
Reputation Points: 12
Solved Threads: 8
If you print out first.getSpeed() after you have called accelerate and brake it should work. Maybe you are using the local variable Speed (which is 0).
rxlim
Junior Poster in Training
51 posts since Feb 2011
Reputation Points: 12
Solved Threads: 8