Guest User

Untitled

a guest
Apr 22nd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. new Thread(() ->{ //asynchronous output test every 2 sec
  2. while(true) {
  3. try {
  4. Thread.sleep(2000);
  5. } catch (InterruptedException e) {
  6. // TODO Auto-generated catch block
  7. e.printStackTrace();
  8. }
  9. System.out.println("test");
  10. }
  11. }).start();
  12.  
  13. String line = scanner.nextLine();
  14.  
  15. Test
  16. Test
  17. TestI'm try
  18. Testing to type
Add Comment
Please, Sign In to add comment