package com.test;

public class Programe {

    public static void main(String[] args) throws InterruptedException {
        // TODO Auto-generated method stub
        
        System.out.println("aaaaaa");
        
        System.out.println(args.length);
        
        for(String s:args){
            System.out.println(s);

        }
        
        //test1();
        //test2();
        
        
        
          Thread t1=new Thread(){
              public void run(){
                  System.out.println("t1");
                  
              }
              
          };
          Thread t2=new Thread(){
              public void run(){
                  System.out.println("t2");
                  
              }
              
          };
          Thread t3=new Thread(){
              public void run(){
                  System.out.println("t3");
                  
              }
              
          };

          t1.start();
          t1.join();//t1执行完成后才会执行t2
          t2.start();
          t2.join();
          t3.start();
    }
    

 

相关文章:

  • 2022-01-19
  • 2021-11-02
  • 2022-02-21
  • 2021-04-30
  • 2021-08-31
  • 2022-02-25
  • 2021-05-18
  • 2021-05-29
猜你喜欢
  • 2021-09-15
  • 2021-12-29
  • 2021-10-31
  • 2022-12-23
相关资源
相似解决方案