Needing help writing a class for a car in java
Hello! I'm pretty new to java and I'm just learning the basics. I was needing help with this problem I have for my first assignment. The question is: Write a second java program: for a class called MyCar. It should contain data for the odometer, current speed, current gear, and methods to access and change the values of these variables. I'm pretty sure I know how to do the first part but I'm getting stuck where it says "use methods to access and change the values of these variables." any help would be really appreciated!