久久久国产精品秘人口麻豆|永久免费AV无语国产|人成电影免费中文字幕|久久AV嫩草影院2

    1. <dfn id="yitbn"><samp id="yitbn"><progress id="yitbn"></progress></samp></dfn>

          <div id="yitbn"></div>

          1. 首頁(yè) 考試吧論壇 Exam8視線 考試商城 網(wǎng)絡(luò)課程 模擬考試 考友錄 實(shí)用文檔 求職招聘 論文下載
            2011中考 | 2011高考 | 2012考研 | 考研培訓(xùn) | 在職研 | 自學(xué)考試 | 成人高考 | 法律碩士 | MBA考試
            MPA考試 | 中科院
            四六級(jí) | 職稱英語 | 商務(wù)英語 | 公共英語 | 托福 | 雅思 | 專四專八 | 口譯筆譯 | 博思 | GRE GMAT
            新概念英語 | 成人英語三級(jí) | 申碩英語 | 攻碩英語 | 職稱日語 | 日語學(xué)習(xí) | 法語 | 德語 | 韓語
            計(jì)算機(jī)等級(jí)考試 | 軟件水平考試 | 職稱計(jì)算機(jī) | 微軟認(rèn)證 | 思科認(rèn)證 | Oracle認(rèn)證 | Linux認(rèn)證
            華為認(rèn)證 | Java認(rèn)證
            公務(wù)員 | 報(bào)關(guān)員 | 銀行從業(yè)資格 | 證券從業(yè)資格 | 期貨從業(yè)資格 | 司法考試 | 法律顧問 | 導(dǎo)游資格
            報(bào)檢員 | 教師資格 | 社會(huì)工作者 | 外銷員 | 國(guó)際商務(wù)師 | 跟單員 | 單證員 | 物流師 | 價(jià)格鑒證師
            人力資源 | 管理咨詢師考試 | 秘書資格 | 心理咨詢師考試 | 出版專業(yè)資格 | 廣告師職業(yè)水平
            駕駛員 | 網(wǎng)絡(luò)編輯
            衛(wèi)生資格 | 執(zhí)業(yè)醫(yī)師 | 執(zhí)業(yè)藥師 | 執(zhí)業(yè)護(hù)士
            會(huì)計(jì)從業(yè)資格考試會(huì)計(jì)證) | 經(jīng)濟(jì)師 | 會(huì)計(jì)職稱 | 注冊(cè)會(huì)計(jì)師 | 審計(jì)師 | 注冊(cè)稅務(wù)師
            注冊(cè)資產(chǎn)評(píng)估師 | 高級(jí)會(huì)計(jì)師 | ACCA | 統(tǒng)計(jì)師 | 精算師 | 理財(cái)規(guī)劃師 | 國(guó)際內(nèi)審師
            一級(jí)建造師 | 二級(jí)建造師 | 造價(jià)工程師 | 造價(jià)員 | 咨詢工程師 | 監(jiān)理工程師 | 安全工程師
            質(zhì)量工程師 | 物業(yè)管理師 | 招標(biāo)師 | 結(jié)構(gòu)工程師 | 建筑師 | 房地產(chǎn)估價(jià)師 | 土地估價(jià)師 | 巖土師
            設(shè)備監(jiān)理師 | 房地產(chǎn)經(jīng)紀(jì)人 | 投資項(xiàng)目管理師 | 土地登記代理人 | 環(huán)境影響評(píng)價(jià)師 | 環(huán)保工程師
            城市規(guī)劃師 | 公路監(jiān)理師 | 公路造價(jià)師 | 安全評(píng)價(jià)師 | 電氣工程師 | 注冊(cè)測(cè)繪師 | 注冊(cè)計(jì)量師
            繽紛校園 | 實(shí)用文檔 | 英語學(xué)習(xí) | 作文大全 | 求職招聘 | 論文下載 | 訪談 | 游戲

            2011年計(jì)算機(jī)等級(jí)考試二級(jí)Java經(jīng)典算法大全(18)

            本文為“計(jì)算機(jī)等級(jí)考試二級(jí)Java經(jīng)典算法大全”,以供廣大學(xué)員參考使用。更多關(guān)于計(jì)算機(jī)等級(jí)考試資料,請(qǐng)?jiān)L問考試吧計(jì)算機(jī)等級(jí)考試頻道(djks.eeeigo.com)。

              */

              public static int getRandomInt( int min, int max )

              {

              // include min, exclude max

              int result = min + new Double( Math.random() * ( max - min ) ).intValue();

              return result;

              }

              /**

              * get a random double with the range [min, max)

              * @param min the minimum value

              * @param max the maximum value

              * @return the random double value

              */

              public static double getRandomDouble( double min, double max )

              {

              // include min, exclude max

              double result = min + ( Math.random() * ( max - min ) );

              return result;

              }

              /**

              *

              * @return a random char with the range ASCII 33(!) to ASCII 126(~)

              */

              public static char getRandomChar()

              {

              // from ASCII code 33 to ASCII code 126

              int firstChar = 33; // "!"

              int lastChar = 126; // "~"

              char result = ( char ) ( getRandomInt( firstChar, lastChar + 1 ) );

              return result;

              }

              /**

              *

              * @return a random rgb color

              */

              public static RGB getRandomRGB()

              {

              int red = getRandomInt(0,256);

              int green = getRandomInt(0,256);

              int blue = getRandomInt(0,256);

              return new RGB( red, green, blue );

              }

              /**

              *

              * @return a random char with the range [0-9],[a-z],[A-Z]

              */

              public static char getRandomNormalChar()

              {

              // include 0-9,a-z,A-Z

              int number = getRandomInt( 0, 62 );

              int zeroChar = 48;

              int nineChar = 57;

              int aChar = 97;

              int zChar = 122;

              int AChar = 65;

              int ZChar = 90;

              char result;

              if( number < 10 )

              {

              result = ( char ) ( getRandomInt( zeroChar, nineChar + 1 ) );

              return result;

              }

              else if( number >= 10 && number < 36 )

              {

              result = ( char ) ( getRandomInt( AChar, ZChar + 1 ) );

              return result;

              }

              else if( number >= 36 && number < 62 )

              {

              result = ( char ) ( getRandomInt( aChar, zChar + 1 ) );

              return result;

              }

              else

              {

              return 0;

              }

              }

              /**

              *

              * @param length the length of the String

              * @return a String filled with random char

              */

              public static String getRandomString( int length )

              {

              // include ASCII code from 33 to 126

              StringBuffer result = new StringBuffer();

              for( int i = 0; i < length; i++ )

              {

              result.append( getRandomChar() );

              }

              return result.toString();

              }

              /**

              *

              * @param length the length of the String

              * @return a String filled with normal random char

              */

              public static String getRandomNormalString( int length )

              {

              // include 0-9,a-z,A-Z

              StringBuffer result = new StringBuffer();

              for( int i = 0; i < length; i++)

              {

              result.append( getRandomNormalChar() );

              }

              return result.toString();

              }

              }

              相關(guān)推薦:計(jì)算機(jī)等級(jí)考試二級(jí)Java編程的三十個(gè)基本規(guī)則

                   計(jì)算機(jī)等級(jí)考試二級(jí)Java練習(xí)題及答案匯總

            文章搜索
            版權(quán)聲明:如果計(jì)算機(jī)等級(jí)考試網(wǎng)所轉(zhuǎn)載內(nèi)容不慎侵犯了您的權(quán)益,請(qǐng)與我們聯(lián)系800@eeeigo.com,我們將會(huì)及時(shí)處理。如轉(zhuǎn)載本計(jì)算機(jī)等級(jí)考試網(wǎng)內(nèi)容,請(qǐng)注明出處。