My Java teacher hasn't been very clear, and i'm kind of flying solo here.
He gave us this project, and one part of the project is throwing up a JOptionPane which allows the user to input a number which correlates to a specific car.
For example
Choose a vehicle that you want.
1. Camaro
2. Mustang
3. Charger(User types in number 1)
How do I pass on Camaro to the next variable instead of the number 1.
Any help is greatly appreciated. Thanks! If you need any more details just ask.