posts - 75,comments - 83,trackbacks - 0
          posted @ 2014-03-13 15:09 梓楓 閱讀(1281) | 評(píng)論 (0)編輯 收藏
          posted @ 2014-03-13 14:26 梓楓 閱讀(211) | 評(píng)論 (0)編輯 收藏
          posted @ 2014-03-04 15:45 梓楓 閱讀(214) | 評(píng)論 (0)編輯 收藏
               摘要: window2003自動(dòng)備份mysql數(shù)據(jù)庫(kù)腳本  閱讀全文
          posted @ 2012-06-27 17:35 梓楓 閱讀(547) | 評(píng)論 (0)編輯 收藏
          posted @ 2012-05-11 11:48 梓楓 閱讀(277) | 評(píng)論 (0)編輯 收藏
               摘要: fckeditor 更改圖片上傳路徑為絕對(duì)路徑  閱讀全文
          posted @ 2011-06-29 10:19 梓楓 閱讀(1684) | 評(píng)論 (6)編輯 收藏
               摘要: axis1.4學(xué)習(xí)示例  閱讀全文
          posted @ 2011-05-25 11:53 梓楓 閱讀(942) | 評(píng)論 (0)編輯 收藏
               摘要: [#0x003D] org.apache.cxf.interceptor.Fault: Could not send Message  閱讀全文
          posted @ 2011-05-19 14:46 梓楓 閱讀(4877) | 評(píng)論 (4)編輯 收藏
               摘要: CXF與xercesImpl.jar包的沖突  閱讀全文
          posted @ 2011-05-18 17:51 梓楓 閱讀(2302) | 評(píng)論 (2)編輯 收藏
          posted @ 2011-05-18 14:13 梓楓 閱讀(1143) | 評(píng)論 (1)編輯 收藏
          posted @ 2011-03-30 17:24 梓楓 閱讀(257) | 評(píng)論 (0)編輯 收藏
          posted @ 2011-03-30 17:22 梓楓 閱讀(383) | 評(píng)論 (0)編輯 收藏
               摘要: oracle 用update一次更新多個(gè)子查詢查出的字段的值  閱讀全文
          posted @ 2011-03-16 17:23 梓楓 閱讀(2148) | 評(píng)論 (0)編輯 收藏
               摘要: JS實(shí)現(xiàn)刷新iframe的方法  閱讀全文
          posted @ 2010-10-26 15:07 梓楓 閱讀(305) | 評(píng)論 (0)編輯 收藏
          posted @ 2010-08-24 10:30 梓楓 閱讀(1648) | 評(píng)論 (0)編輯 收藏
          posted @ 2010-07-23 09:39 梓楓 閱讀(667) | 評(píng)論 (0)編輯 收藏
          posted @ 2010-07-17 14:41 梓楓 閱讀(818) | 評(píng)論 (0)編輯 收藏
               摘要: oracle中rownum作用及用法  閱讀全文
          posted @ 2010-06-24 20:15 梓楓 閱讀(277) | 評(píng)論 (0)編輯 收藏
          posted @ 2010-05-26 10:52 梓楓 閱讀(430) | 評(píng)論 (0)編輯 收藏
          posted @ 2010-03-18 10:30 梓楓 閱讀(792) | 評(píng)論 (0)編輯 收藏
          posted @ 2009-12-24 13:12 梓楓 閱讀(2994) | 評(píng)論 (0)編輯 收藏
          posted @ 2009-12-08 14:20 梓楓 閱讀(238) | 評(píng)論 (0)編輯 收藏
          posted @ 2009-11-03 10:58 梓楓 閱讀(919) | 評(píng)論 (0)編輯 收藏
          posted @ 2009-09-10 13:17 梓楓 閱讀(347) | 評(píng)論 (0)編輯 收藏
          posted @ 2009-03-16 22:19 梓楓 閱讀(439) | 評(píng)論 (1)編輯 收藏
          posted @ 2009-03-02 22:00 梓楓 閱讀(237) | 評(píng)論 (1)編輯 收藏
               摘要: lucene查詢一個(gè)簡(jiǎn)單的例子  閱讀全文
          posted @ 2008-12-12 15:48 梓楓 閱讀(1745) | 評(píng)論 (2)編輯 收藏
               摘要: spring各種郵件發(fā)送代碼  閱讀全文
          posted @ 2008-12-08 10:32 梓楓 閱讀(5885) | 評(píng)論 (3)編輯 收藏
          posted @ 2008-10-28 11:36 梓楓 閱讀(3499) | 評(píng)論 (4)編輯 收藏
          posted @ 2008-10-10 11:33 梓楓 閱讀(283) | 評(píng)論 (1)編輯 收藏
          posted @ 2008-10-07 11:16 梓楓 閱讀(1187) | 評(píng)論 (0)編輯 收藏
          posted @ 2008-09-22 10:17 梓楓 閱讀(2433) | 評(píng)論 (2)編輯 收藏
          posted @ 2008-09-17 12:10 梓楓 閱讀(318) | 評(píng)論 (0)編輯 收藏
          posted @ 2008-09-16 11:54 梓楓 閱讀(1504) | 評(píng)論 (0)編輯 收藏
          posted @ 2008-08-21 10:55 梓楓 閱讀(2412) | 評(píng)論 (3)編輯 收藏
          posted @ 2008-08-13 11:48 梓楓 閱讀(1521) | 評(píng)論 (1)編輯 收藏
          posted @ 2008-08-11 11:23 梓楓 閱讀(239) | 評(píng)論 (0)編輯 收藏
               摘要:

          一 泛型簡(jiǎn)介
          二 泛型基礎(chǔ)
          三 一個(gè)簡(jiǎn)單的泛型類(lèi)
          四 Java類(lèi)庫(kù)中的泛型  閱讀全文
          posted @ 2008-08-11 11:11 梓楓 閱讀(348) | 評(píng)論 (0)編輯 收藏
          posted @ 2008-08-06 11:32 梓楓 閱讀(344) | 評(píng)論 (0)編輯 收藏
          posted @ 2008-07-29 16:32 梓楓 閱讀(2153) | 評(píng)論 (0)編輯 收藏
               摘要: 創(chuàng)建一個(gè)可變長(zhǎng)度的參數(shù)列表

          可變參數(shù)使得你可以指定某方法來(lái)接受多個(gè)同一類(lèi)型的參數(shù),而且并不要求事先確定參數(shù)的數(shù)量(在編譯或運(yùn)行時(shí))。
          這就是Tiger的一個(gè)集成部分。事實(shí)上,正是因?yàn)镴ava語(yǔ)言的一些新特性組合在一起才表現(xiàn)出了可變參數(shù)的特性。

          我如何去實(shí)現(xiàn)呢?
          首先,你要習(xí)慣的書(shū)寫(xiě)省略號(hào)(。。。)。這三個(gè)小點(diǎn)是可變參數(shù)的關(guān)鍵,你將會(huì)經(jīng)常鍵入它們。下面是Guitar類(lèi)的構(gòu)造器使用可變參數(shù)來(lái)接受不確定數(shù)量字符串的一個(gè)例子:


          public Guitar(String builder, String model, String...features);.......................
            閱讀全文
          posted @ 2008-07-25 16:57 梓楓 閱讀(208) | 評(píng)論 (0)編輯 收藏
          posted @ 2008-07-25 10:12 梓楓 閱讀(414) | 評(píng)論 (0)編輯 收藏
          posted @ 2008-07-23 22:18 梓楓 閱讀(667) | 評(píng)論 (0)編輯 收藏
          posted @ 2008-07-22 16:31 梓楓 閱讀(3564) | 評(píng)論 (5)編輯 收藏
          posted @ 2008-07-22 11:36 梓楓 閱讀(306) | 評(píng)論 (0)編輯 收藏
               摘要: 增強(qiáng)的for循環(huán)
             為了迭代集合和數(shù)組,增強(qiáng)的for循環(huán)提供了一個(gè)簡(jiǎn)單、兼容的語(yǔ)法。有兩點(diǎn)值得一提:   Init表達(dá)式

            在循環(huán)中,初始化表達(dá)式只計(jì)算一次。這意味著您通常可以移除一個(gè)變量聲明。在這個(gè)例子中,我們必須創(chuàng)建一個(gè)整型數(shù)組來(lái)保存computeNumbers()的結(jié)果,以防止每一次循環(huán)都重新計(jì)算該方法。您可以看到,下面的代碼要比上面的代碼整潔一些,并且沒(méi)有泄露變量numbers:

            未增強(qiáng)的For:  int sum = 0;  Integer[] numbers = computeNumbers();  for (int i=0; i < numbers.length ; i++) sum += numbers[i];   增強(qiáng)后的For:    int sum = 0;  for ( int number: computeNumbers() ) sum += number;......
            閱讀全文
          posted @ 2008-07-21 23:01 梓楓 閱讀(258) | 評(píng)論 (0)編輯 收藏
          posted @ 2008-07-21 14:09 梓楓 閱讀(2292) | 評(píng)論 (1)編輯 收藏
          posted @ 2008-07-20 22:14 梓楓 閱讀(3394) | 評(píng)論 (2)編輯 收藏
          posted @ 2008-07-16 10:38 梓楓 閱讀(2489) | 評(píng)論 (1)編輯 收藏
          posted @ 2008-07-14 15:42 梓楓 閱讀(750) | 評(píng)論 (0)編輯 收藏
          posted @ 2008-06-30 15:37 梓楓 閱讀(5187) | 評(píng)論 (12)編輯 收藏
          posted @ 2008-06-30 15:14 梓楓 閱讀(37391) | 評(píng)論 (6)編輯 收藏
          posted @ 2008-06-30 10:36 梓楓 閱讀(494) | 評(píng)論 (0)編輯 收藏
          posted @ 2008-06-12 15:27 梓楓 閱讀(1691) | 評(píng)論 (0)編輯 收藏
          posted @ 2008-05-19 16:37 梓楓 閱讀(5576) | 評(píng)論 (2)編輯 收藏
          posted @ 2008-05-19 15:53 梓楓 閱讀(202) | 評(píng)論 (0)編輯 收藏
          posted @ 2008-05-06 17:05 梓楓 閱讀(1977) | 評(píng)論 (1)編輯 收藏
          posted @ 2008-04-19 16:59 梓楓 閱讀(417) | 評(píng)論 (0)編輯 收藏
          posted @ 2008-04-18 20:35 梓楓 閱讀(295) | 評(píng)論 (0)編輯 收藏
          posted @ 2008-04-17 20:15 梓楓 閱讀(443) | 評(píng)論 (0)編輯 收藏
          posted @ 2008-04-17 19:27 梓楓 閱讀(1834) | 評(píng)論 (0)編輯 收藏
          posted @ 2008-04-17 13:56 梓楓 閱讀(735) | 評(píng)論 (0)編輯 收藏
          posted @ 2008-03-31 15:27 梓楓 閱讀(9669) | 評(píng)論 (9)編輯 收藏
          posted @ 2008-03-25 10:54 梓楓 閱讀(304) | 評(píng)論 (0)編輯 收藏
          posted @ 2008-03-12 11:16 梓楓 閱讀(16297) | 評(píng)論 (6)編輯 收藏
          posted @ 2008-02-17 10:14 梓楓 閱讀(336) | 評(píng)論 (2)編輯 收藏
          posted @ 2008-01-16 14:15 梓楓 閱讀(228) | 評(píng)論 (0)編輯 收藏
          posted @ 2008-01-15 16:14 梓楓 閱讀(1977) | 評(píng)論 (0)編輯 收藏
          posted @ 2008-01-15 15:02 梓楓 閱讀(578) | 評(píng)論 (2)編輯 收藏
          posted @ 2008-01-14 14:55 梓楓 閱讀(1292) | 評(píng)論 (1)編輯 收藏
          posted @ 2007-12-04 14:05 梓楓 閱讀(1590) | 評(píng)論 (1)編輯 收藏
          posted @ 2007-11-08 16:04 梓楓 閱讀(137) | 評(píng)論 (0)編輯 收藏
          主站蜘蛛池模板: 西青区| 海城市| 道孚县| 宁化县| 大新县| 息烽县| 伊宁县| 寻甸| 迁西县| 淳化县| 仁布县| 扶绥县| 乌兰察布市| 汉川市| 盘锦市| 塔城市| 海阳市| 珲春市| 米脂县| 长宁区| 漯河市| 贡山| 准格尔旗| 织金县| 昂仁县| 保定市| 高碑店市| 玉山县| 临桂县| 丰顺县| 阿瓦提县| 榆树市| 黑龙江省| 卫辉市| 秭归县| 焦作市| 武川县| 乌什县| 阿坝县| 漳平市| 邢台市|