`
hollowinhart
  • 浏览: 124823 次
  • 性别: Icon_minigender_1
  • 来自: 太原
社区版块
存档分类
最新评论
文章列表
   Hashtable 为什么不能加入key=null 或者value=null的键值对进来,看它的源码就知道了 一个是硬性规定,一个是算hash值的,不做规定也会抛异常出来. public synchronized V put(K key, V value) { // Make sure the value is not null if (value == null) {     throw new NullPointerException(); }  // Makes sure the key is not already in the hashtable. Entry tab[] ...
静态方法可以被继承但不能被覆盖,另:谁声明就调用谁的静态方法,而不管实例是谁的实例. public class Test100107{    public static void main(String[] args)    {        Test100107P testp = new Test100107S();        testp.print();        Test100107S tests = new Test100107S();        tests.print();    }    }class Test100107P{    public static void ...
今天因为局域网ARP病毒攻击,写了个BAT批处理文件就两行:ARP -DARP -S GatewayIP GatewayMAC保存文件为ARP.BAT双击运行,结果一直就不停地执行第一个命令,不停刷屏. 最后查出问题出来:不能保存文件名为ARP.BAT改个文件名ARPKILL.BAT,一切OK! 总结:文件最好不能命令为命令关键字,特别是可执行文件.
    刚才听说公司chrismas时抽奖我得了个暧手宝,不知道是什么样子的。公司每年都会把写有员工姓名的卡片挂在圣诞树上,然后择几名员工使其被看不见,然后被转晕,从树上选几个卡片。去年我没有得到,我们组有三个人得到了,不过去年 年会时我得到三等奖:保温杯。     今年又得了个三等奖:暖手宝。老天的意思是不是说:三是我的吉祥号码? 五行中我缺火吗?
 * A driver is not required to implement this method.     * The possible implementations and return values have been modified in     * the Java 2 SDK, Standard Edition, version 1.3 to     * accommodate the option of continuing to proccess commands in a batch     * update after a <code>BatchUpda ...
 * If one of the commands in a batch update fails to execute properly,     * this method throws a <code>BatchUpdateException</code>, and a JDBC     * driver may or may not continue to process the remaining commands in     * the batch.         如果批量处理时其中一个命令执行失败,则会抛出一个异常BatchUpdateException ...
PrepareStatement 也是接口PrepareStatement extends StatementPrepareStatement 本身没有 int[] executeBatch() throws SQLException 方法而是继承了Statement的方法,且它们都是接口没有实际实现方法,但Statement接口对executeBatch()方法做了规范/**     * Submits a batch of commands to the database for execution and     * if all commands execute successfully ...
    现在是午睡刚醒,上午写代码时不知怎的就突然想起那些逝去的时光,想到黄百鸣,想到2001年在th单身宿舍看到那些节目,凤凰电影中的节目,那时的黄还是年轻的瘦的,现在再看到他老兄已然是年过半百。。。     现在仔细听听似乎还能听到单身公寓电视机房中欢快的笑声,那些过去的似乎早已过去,但又仿佛还在我们身边,像我们一样不愿离去。看到时过境迁的景像,发现时间已经过了好久,想想那些欢乐的或痛苦的,却又感觉就在昨天。时间这东西啊。。。。

200911

\      sdp     zgh        zh          ww      zxy d                                           11.17 t                                            8 d    11.28             11.28     11.28    11.28t     8                      8             8          8  

200910

\      sdp     zgh        zh          ww      zxy d     10.27  10.15    10.17    10.15 t      0.5      1.5        8           1.5 d    10.31  10.31    10.31    10.31    10.31 t     8          8          8             8          8  
上个星期南京几乎所有的调频都在说有较多的雨雪光临南京,但除了前天晚上和昨天的淅淅沥沥的小雨外,没有什么白色的自然现象出现。     本来说周四会放晴,但今天老天迫不及待的笑了,大地一片光明。上天有好生之德。
class Worker implements Runnable{           /** 全局的一个信息,用来确定是哪个线程在工作 */     private static int count = 0;              /** 线程的标志 */     private int id;           /** 线程已工作次数 */     private int pCount;              public Worker(int id){           this.id = id;       }              public ...
StringBuilder sb = new StringBuilder("6sabcsssfsfs33");   sb.delete(2, 4);   sb.delete(sb.length()-2, sb.length());
      String str="6sabcsssfsfs33";          Pattern pattern = Pattern.compile("a?b?3?");         Matcher matcher = pattern.matcher(str);          System.out.println(matcher.replaceAll(""));
String regx="[^a|b|3]";         String temp="6sabcsssfsfs33";         Pattern p=Pattern.compile(regx);         Matcher m=p.matcher(temp);         while(m.find())              System.out.print(m.group());
Global site tag (gtag.js) - Google Analytics