Skip to content

Instantly share code, notes, and snippets.

@david-mcneil
Created June 12, 2010 15:37
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 david-mcneil/435825 to your computer and use it in GitHub Desktop.
Save david-mcneil/435825 to your computer and use it in GitHub Desktop.
import demo.api.Store;
import demo.api.StoreFactory;
public class Main {
public static void main(String[] args) {
Store s = StoreFactory.makeStore();
System.out.println("qty = " + s.getQty());
s.buy().buy().buy().sell().buy();
System.out.println("qty = " + s.getQty());
s.buy(100);
System.out.println("qty = " + s.getQty());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment