Skip to content

Instantly share code, notes, and snippets.

@hfuller
Created April 16, 2013 19:51
Show Gist options
  • Save hfuller/5399045 to your computer and use it in GitHub Desktop.
Save hfuller/5399045 to your computer and use it in GitHub Desktop.
public class GlobeRotaterThread implements Runnable {
public GlobeRotaterThread(Globe g) {
this.theObject = g;
}
@Override
public void run() {
while (true) {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
return;
}
globe.rotate();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment