Skip to content

Instantly share code, notes, and snippets.

@chrisbraddock
Created October 17, 2016 12:27
Show Gist options
  • Save chrisbraddock/f098dac3d5f9cca13a09c4c01accbcfa to your computer and use it in GitHub Desktop.
Save chrisbraddock/f098dac3d5f9cca13a09c4c01accbcfa to your computer and use it in GitHub Desktop.
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