Java延迟加载

来源:互联网 发布:腾讯云域名购买 编辑:程序博客网 时间:2024/04/30 07:06

延迟3秒

 

try{ 
            Thread.currentThread().sleep(3 * 1000);

 

            //延迟3秒后再执行下面的代码

            String shpFoldPath = rarFileName.substring(0,rarFileName.lastIndexOf("."));
            shpPath = getShpPath(shpFoldPath);
           
}catch(InterruptedException e){}

原创粉丝点击