Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- public static void main(String[] args) {
- while (true) {
- try {
- Thread.sleep(1000);
- System.out.println("I'm doing some work ...");
- } catch (InterruptedException ex) {
- Thread.currentThread().interrupt();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement