Skip to content

Instantly share code, notes, and snippets.

@chathurangat
Last active February 24, 2018 15:31
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 chathurangat/cc4ba465566c323a7818611b2140bcbe to your computer and use it in GitHub Desktop.
Save chathurangat/cc4ba465566c323a7818611b2140bcbe to your computer and use it in GitHub Desktop.
public class MyRunnable implements Runnable() {
public void run() {
methodOne();
}
public void methodOne() {
int localVariable1 = 45;
MySharedObject localVariable2 = MySharedObject.object3;
methodTwo();
}
public void methodTwo() {
Integer localVariable1 = new Integer(99);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment