Skip to content

Instantly share code, notes, and snippets.

@ecunado
Created June 28, 2017 09:31
Show Gist options
  • Select an option

  • Save ecunado/271e7d568e64d1a0ede5bfc0c1619601 to your computer and use it in GitHub Desktop.

Select an option

Save ecunado/271e7d568e64d1a0ede5bfc0c1619601 to your computer and use it in GitHub Desktop.
class MyCounter {
private static int counter = 0;
public static int getCount() {
return counter++;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment