You are on page 1of 1

Java Lab 9: Racecar – Part 2

1. Create a new package called race. Move Racecar.java into the package folder
and add a package statement to Racecar to declare it a member of that package.
Compile and run.

2. Change the main method in Racecar to make a more interactive racing game. If you
want, you could allow users to choose the color and speed of their cars and construct
races. Or you could do something completely different. Be creative. Feel free to change
the Racecar class or add other classes to the race package.

You might also like