Skip to content

Instantly share code, notes, and snippets.

@Juriy
Created September 17, 2013 06:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Juriy/6590848 to your computer and use it in GitHub Desktop.
Save Juriy/6590848 to your computer and use it in GitHub Desktop.
Sample account
package com.juriy.threads;
/**
* @author Juriy Bura
*/
public class Account {
private int number;
private int amount;
public Account(int number, int amount) {
this.number = number;
this.amount = amount;
}
public int getNumber() {
return this.number;
}
public int getAmount() {
return this.amount;
}
public void updateAmount(int delta) {
this.amount += delta;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment