Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class TestThreadTwice1 extends Thread{
- public void run(){
- System.out.println("running...");
- }
- public static void main(String args[]){
- TestThreadTwice1 t1=new TestThreadTwice1();
- t1.start();
- t1.start();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment