⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 threadlib.java

📁 Java游戏高级编程!!很不错的!!!Java游戏高级编程!!很不错的
💻 JAVA
字号:
     package com.croftsoft.core.lang;

     /*********************************************************************
     * A collection of static methods to manipulate Thread objects.
     *
     * @version
     *   1999-10-02
     * @author
     *   <A HREF="http://www.alumni.caltech.edu/~croft/">David W. Croft</A>
     *********************************************************************/

     public class  ThreadLib
     //////////////////////////////////////////////////////////////////////
     //////////////////////////////////////////////////////////////////////
     {

     /*********************************************************************
     * Puts the current Thread to sleep for a number of milliseconds.
     *
     * @return
     *   Returns false if InterruptedException was thrown.
     *********************************************************************/
     public static boolean  sleep ( long  millis )
     //////////////////////////////////////////////////////////////////////
     {
       try
       {
         Thread.currentThread ( ).sleep ( millis );
       }
       catch ( InterruptedException  ex )
       {
         return false;
       }

       return true;
     }

     //////////////////////////////////////////////////////////////////////
     //////////////////////////////////////////////////////////////////////
     }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -