Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new Thread(() ->{ //asynchronous output test every 2 sec
- while(true) {
- try {
- Thread.sleep(2000);
- } catch (InterruptedException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- System.out.println("test");
- }
- }).start();
- String line = scanner.nextLine();
- Test
- Test
- TestI'm try
- Testing to type
Add Comment
Please, Sign In to add comment