So basically I'm trying to change the value of something by 10, I've written this code but it doesn't appear to work. Any tips?
public double increaseHours(int x) { return this.hoursworked + x; }
And used in a test
employee1.increaseHours(10);
If necessary I can post the full code...