Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package thread;
- import java.io.BufferedReader;
- import java.io.IOException;
- import java.io.InputStreamReader;
- public class MainClass {
- public static void main(String[] args) throws IOException {
- Thread cl = new Clock(1000);
- cl.start();
- BufferedReader reader =
- new BufferedReader(new InputStreamReader(System.in));
- String input = null;
- do {
- input = reader.readLine();
- System.out.println("eco: " + input);
- } while(!input.equals("exit"));
- System.exit(0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement