当前位置: 首页 > news >正文

国外的营销网站有哪些电商模板免费下载

国外的营销网站有哪些,电商模板免费下载,如何做照片ppt模板下载网站,深圳网站建设哪里便宜今天调试程序时#xff0c;在调用Properties类的setProperty(String key, String value)方法时#xff0c;遇到了一个小问题#xff0c;程序运行到该语句时抛出异常#xff0c;提示java.lang.NullPointerException#xff0c;调查了半天#xff0c;发现问题出在调用setPr… 今天调试程序时在调用Properties类的setProperty(String key, String value)方法时遇到了一个小问题程序运行到该语句时抛出异常提示java.lang.NullPointerException调查了半天发现问题出在调用setProperty(String key, String value)时传递给该方法的value参数的值为null由于调用setProperty(String key, String value)方法时它会去调用Hashtable类中的public synchronized Object put(Object key, Object value)方法查看该方法的源代码实现代码的开始处就给出了答案  1public synchronized Object put(Object key, Object value)  { 2    // Make sure the value is not null 3    if (value  null) { 4        throw new NullPointerException(); 5    } 6 7    // Makes sure the key is not already in the hashtable. 8    Entry tab[]  table; 9    int hash  key.hashCode();10    int index  (hash  0x7FFFFFFF) % tab.length;11    for (Entry e  tab[index] ; e ! null ; e  e.next) {12        if ((e.hash  hash)  e.key.equals(key)) {13        Object old  e.value;14        e.value  value;15        return old;16        }17    }1819    modCount;20    if (count  threshold) {21        // Rehash the table if the threshold is exceeded22        rehash();2324            tab  table;25            index  (hash  0x7FFFFFFF) % tab.length;26    } 2728    // Creates the new entry.29    Entry e  new Entry(hash, key, value, tab[index]);30    tab[index]  e;31    count;32    return null;33    } 就此问题的根源找到了以后写程序的时候得多注意这些细节。以下附上setProperty(String key, String value)方法的描述  1 Object java.util.Properties.setProperty(String key, String value) 2Calls the Hashtable method put. Provided for parallelism with the getProperty method. Enforces use of strings for  property keys and values. The value returned is the result of the Hashtable call to put.  3  4 See Also: 5 getProperty 6 Parameters: 7key: the key to be placed into this  property list. 8 value: the value corresponding to key. 9 Returns:10the previous value of the specified key in this property list, or null if  it did not have one.11 Since: 1.2 转载于:https://www.cnblogs.com/xxpal/articles/837400.html
http://www.w-s-a.com/news/875061/

相关文章:

  • 2015做网站前景电子商务营销的发展现状
  • 官方网站建设情况说明电子商务网站开发的形式有
  • 网站建设玖金手指排名11专业建站公司建站系统
  • 全球排名前十网站百度网站官网网址
  • 商家在携程旅游网站怎样做宣传做网站公司苏州
  • 芜湖做网站都有哪些广州音乐制作公司
  • 青岛好的网站制作推广注册公司流程步骤
  • 怎么制作营销网站模板wordpress苗木模板
  • 手机网站样例wordpress 排序
  • 济南网站建设手机网站开发人员需要去做原型吗
  • 动易网站模板下载微信支付 wordpress
  • 学校建设外文网站情况阿里云 建设网站怎么样
  • 网站建设与网页设计制作深圳网站建设首选上榜网络
  • 网站浏览成交指标计算机应用是做什么的
  • 企业网站建设的要求wordpress 404页面模板
  • 公司怎么注册官方网站wordpress花园网站
  • 一般网站的建设步骤有哪些企业网站建设应该注意什么事项问题
  • 枣庄市建设局网站建设工程合同交底的内容包括
  • 全国十大跨境电商排名seo优化入门教程
  • 福安网站开发网站内容建设要求age06
  • 网站开发制作公司罗湖在线
  • 做网站银川潍坊网络科技有限公司
  • 南宁企业网站建站模板盐田高端网站建设
  • 深圳市建设局网站张局北京档案馆网站建设
  • 运动健身型网站开发网站备案掉了什么原因
  • 网站开发的前后端是什么注册网站多少钱一年
  • 彩票网站建设需要什么网站未备案被阻断怎么做
  • wordpress 版权声明网站优化排名哪家性价比高
  • dedecms网站关键词外包做网站平台 一分钟
  • 酒网站建设游戏分类网站怎么做