隨筆-94  評論-56  文章-3  trackbacks-0
               //畫面表示する開始日を判斷する為のSET
               Set strYmdSet = new HashSet();

               strYmdSet.add(strYmd1().toString());
               strYmdSet.add(strYmd2().toString());
               。。。
               strYmdSet.add(strYmdn().toString());

              /**
               * セットから最小の開始日を取得します。
               *
               * 
          @param strYmdSet 開始日のセット
               * 
          @return 最小の開始日
               
          */
              
          private String getMinStrYtiYmd(Set strYmdSet) {
                  String minStrYmd 
          = "99999999";

                  Iterator itr 
          = strYmdSet.iterator();
                  
          while (itr.hasNext()) {
                      String strYmd 
          = (String) itr.next();
                      
          if (strYmd == null) {
                          strYmd 
          = "";
                      }
                      
          if (minStrYmd.compareTo(strYmd) > 0) {
                          minStrYmd 
          = strYmd;
                      }
                  }
                  
          return minStrYmd;
              }
          posted on 2007-05-23 13:34 小言身寸 閱讀(5643) 評論(0)  編輯  收藏 所屬分類: JAVA相關技術
          主站蜘蛛池模板: 千阳县| 鹤峰县| 犍为县| 白水县| 永定县| 双桥区| 罗城| 休宁县| 竹山县| 台前县| 丰都县| 余姚市| 靖远县| 米易县| 阜阳市| 广灵县| 会理县| 昌平区| 肥城市| 旬邑县| 新昌县| 炎陵县| 彭阳县| 林西县| 沭阳县| 萨嘎县| 石嘴山市| 淮安市| 漳州市| 海丰县| 绥江县| 中西区| 满城县| 广灵县| 洛浦县| 类乌齐县| 兴义市| 宁津县| 门头沟区| 德昌县| 伊春市|