人在江湖

            BlogJava :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
            82 Posts :: 10 Stories :: 169 Comments :: 0 Trackbacks
          1. remove element without causing ConcurrentModificationException
          List<String> names = .
          Iterator<String> i = names.iterator();
          while (i.hasNext()) {
             // Do something
             i.remove();
          }

          Note that you must call i.next() before you can call i.remove()

          2. 法語,德語中數(shù)字小數(shù)點用,表示,千位符是"." 如果做支持I18n的UI, 需要顯示數(shù)字并接受他們輸入的數(shù)字,可以這樣做:
              public static void main(String[] args) throws ParseException{
                  String numString = "0.05";
                  String frenchNumString = "0,05";
                  NumberFormat nf = NumberFormat.getNumberInstance();
                  System.out.println("French format of raw string: " + nf.format(Double.parseDouble(numString)));
                  
                  Double n = (Double) nf.parse(frenchNumString);
                  System.out.println("Parse french number and calculate: " + (n + 1));
              }

          3. 免費的錄屏軟件:HyperCam 

          posted on 2012-06-23 16:28 人在江湖 閱讀(1350) 評論(0)  編輯  收藏 所屬分類: java
          主站蜘蛛池模板: 武宁县| 平果县| 全椒县| 胶南市| 浏阳市| 仁寿县| 密云县| 桐梓县| 芮城县| 大安市| 嘉鱼县| 鹰潭市| 淄博市| 周宁县| 虞城县| 丹东市| 额尔古纳市| 龙井市| 巢湖市| 教育| 随州市| 政和县| 苗栗市| 日照市| 扎兰屯市| 邢台县| 通城县| 刚察县| 高邮市| 西林县| 甘谷县| 鄂伦春自治旗| 合江县| 临漳县| 长岭县| 临清市| 隆回县| 镇康县| 惠州市| 铜梁县| 郧西县|