1. 使用POI最新版本时遇到一些版本重构带来的小问题,纪录下: 问题一: 在使用poi-3.15-beta2版本解析excel时, 发现并有网友所说的WorkbookFactory类. 原因 从poi-3.7.jar开始, WorkbookFactory类已经放进poi-ooxml-XXX.jar中了. 解决方法 同时引入这两个jar包: poi-3.15-beta2.jar, poi-ooxml-3.15-beta2.jar 问题二:异常 Exc ...

    阅读全文
  2. java中日期(Date),时区(TimeZone),夏令时(daylight)以及地区(Locale),日历(Calendar), DateFormat,fasttime之间的关系整理,以及一些开源的Utils工具类。 java的Calendar, TimeZone都是抽象类。具体的子类有GregorianCalendar, JuliaCalendar和JapaneseImperialCalendar以及SimpleTimeZone。有待某位国人来写个Chinese Lunar Cale ...

    阅读全文
  3. 一、如何获取JDBC的jar包?     1.<ORACLE_HOME>/jdbc/lib     2.http://www.Oracle.com/technetwork/database/features/jdbc/index-091264.html      二、JDBC driver 版本 与 JDK版本的关系   From JDBC FAQ on Oracle Technology N ...

    阅读全文
  4. 这是2017年编程语言排名。 javaScript 依然稳居榜首,Java 紧随其后;PHP 在此榜单上首次出现下降,被 Python 反超,但仍然很受欢迎,排名第四;Ruby 从第五名降至第七;TypeScript 首次进入前二十强。 stackoverflow 2017年开发者调研报告:JavaScript 连续五年夺得最常用编程语言。 SQL 再次占据第二位,Java 第三。 而 Python 在五年内首次超过了 PHP。 ...

    阅读全文
  5. 有一分数序列:2/1,3/2,5/3,8/5,13/8,21/13...求出这个数列的前20项之和 无聊,写个js玩玩. 递归写法 function a(n){ if(n==1){return 1;} else if(n==2){return 2;} else{ return a(n-1)+a(n-2);} } function b(n){ return a(n+1)/a(n); } function sum(n){ ...

    阅读全文
  6. 以下代码 <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="Generator" content="EditPlus®"> <meta name="Author" content=" ...

    阅读全文
  7. 写断打字效果的js. html: <p class="typeIn">This is the text typed in manually.This is the text typed in manually.This is the text typed in manually. This is the text typed in manually.This is the text typed in manually.</p> ...

    阅读全文
  8. 先来段闲话 这两天在学《王者荣耀》的配音,一时兴起,被荣耀里的界面吸引住了,里面的那种气焰效果随风飘飘,很适合我的性格。于是来段js fire effective的研究。 google带我来到了http://creativejs.com/ 认识了creativejs,被它的首页里的logo展示吸引了,于是看了下去源码实现,然后,然后就返现了THREE这个Object, 再然后就在相关的google中发现了http://jeromeetienne.github.io/fireworks ...

    阅读全文
  9. 这是一个井字棋游戏的java实现。摘录于stackoverflow。 游戏规则很简单,只要一方棋子在水平线,垂直线或者对角线任意一条线上排列成功即为获胜。 作者原先的代码存在着一些问题: 代码如下: 一共有几个类: play, player, human, computer, set Play类: import java.util.Scanner; public class play { public static void m ...

    阅读全文
  10. Normally use the String concatenations using :  +, StringBuffer.append(), String.concat(). We always think that using ‘+’ operator for String Concatenation is slow.  This is true but not always. For Ex: String str = “Th ...

    阅读全文