dance-elephant

          常用鏈接

          統計

          Ant

          最新評論

          2009年3月21日 #

          ant include exclude

          include,exclude主要運用于fileset:
          <fileset dir="">
             <include name="">
            <exclude name="">
          </fileset>
          include 和exclude中的值是大小寫區分的,可以通過設置casesensitive="false"來取消它
          另外,可以通過設置defaultexcludes="no"可以關閉默認排除模式。



          posted @ 2009-03-21 23:08 dance_elephant 閱讀(713) | 評論 (0)編輯 收藏

          2008年8月12日 #

          j2me 編程中如何使用kxml解析xml

          j2me 編程中如何使用kxml解析xml,希望能給我一個實例以及相關資料,小弟在此謝過了

          posted @ 2008-08-12 15:19 dance_elephant 閱讀(504) | 評論 (1)編輯 收藏

          2008年7月24日 #

          TreeSet?

          TreeSet中如果加入的對象是自己編寫的一個類的實例,比如class MyType{};
          那么MyType 除了要實現Comparable接口外,equals方法到底要不要自己重新編寫?
          自己編程測試時,發現equals 方法有沒重寫好像無關痛癢嗎?
          路過的各位,希望能給小弟留下一道痕跡
          在此謝啦

          posted @ 2008-07-24 01:07 dance_elephant 閱讀(288) | 評論 (1)編輯 收藏

          2008年7月15日 #

          重擲異常時如何捕獲這個異常?

          class OneException extends Exception {
           public OneException(String s){
            super(s);
           }
          }
          class TowException extends Exception{
           public TowException(String s){
            super(s);
           }
          }
          public class RethrowNew{
           public static void f()throws OneException{
            System.out.println("originationg the exception in f()");
            throw new OneException("thrown from f()");
           }
           public static void main(String[] agrs)throws Throwable{
            try{
             f();
            }
            catch(OneException e){
             System.err.println("caught in main,e.printstacktrace()");
             e.printStackTrace(System.err);
             throw e;
            }
           }
          }
          在main()的catch()中我拋出異常e:throw e;但不知這個異常如何被捕獲,哪位
          高手可以幫小弟解決一下啊。
          上述程序的運行結果如下:
          originationg the exception in f()
          caught in main,e.printstacktrace()
          OneException: thrown from f()
           at RethrowNew.f(RethrowNew.java:15)
           at RethrowNew.main(RethrowNew.java:19)
          Exception in thread "main" OneException: thrown from f()//不知道這段信息如何出來
           at RethrowNew.f(RethrowNew.java:15)
           at RethrowNew.main(RethrowNew.java:19)

          posted @ 2008-07-15 16:35 dance_elephant 閱讀(463) | 評論 (1)編輯 收藏

          僅列出標題  
          主站蜘蛛池模板: 鄂伦春自治旗| 紫云| 乌拉特后旗| 南皮县| 伊通| 蛟河市| 苗栗县| 清镇市| 城固县| 丰镇市| 维西| 汾西县| 抚顺市| 泊头市| 即墨市| 金堂县| 沅陵县| 芜湖县| 乐清市| 鄂托克前旗| 娄底市| 万安县| 苏尼特右旗| 商河县| 高邮市| 定州市| 会泽县| 翼城县| 望谟县| 蛟河市| 德庆县| 黔江区| 屯留县| 烟台市| 陇川县| 通州区| 商河县| 西和县| 且末县| 兰州市| 韩城市|