Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Thread threadA = new Thread(new Runnable(){
- public void run(){
- for(int i =0; i<2; i++){
- System.out.println("This is thread : " + Thread.currentThread().getName());
- }
- }
- }, "Thread A");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement