Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Downloader implements Runnable {
- volatile boolean finished = false;
- public void stopMe()
- {
- finished = true;
- }
- public void run()
- {
- while (!finished)
- {
- System.out.println("things");
- }
- System.out.println("Done.");
- }
- }
Add Comment
Please, Sign In to add comment