Created
October 17, 2016 12:27
-
-
Save chrisbraddock/f098dac3d5f9cca13a09c4c01accbcfa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Value { | |
private boolean modified = false; | |
private int val; | |
public Value(initialVal) { | |
val = initialVal; | |
} | |
public void setVal(int newVal) { | |
val = newVal; | |
modified = true; | |
} | |
public boolean wasModified() { | |
return modified; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment