You can create a class that link a particular motor and speed value.
You can create an instance of that class:
You can make that motor change speed:
You can later determine how fast the motor is going:
int speedySpeed = speedy.getSpeed();
Only the class instance maintains the speed.
OMG, I didn't think of using a class! (herpaderp) Thankyou paul! I will love you forever <3