JavaSE
天府书虫
非著名自媒体博主,自由职业者
展开
-
JavaSE All In One
Java provides the StringBuffer and String classes, and the String class is used to manipulate character strings that cannot be changed. Simply stated, objects of type String are read only and immuta原创 2015-12-04 20:35:37 · 356 阅读 · 0 评论 -
Java设计模式之--多例清单(mutilation)
在改造一个很古老的项目时遇到一个问题,这个项目使用的是JDK1.4,众所周知,枚举(enum)是在JDK1.5之后才被加入到Java中的,但是新加入的这个功能需要用到枚举.这可怎么办?思来想去,苦苦挣扎之后,一个群里的网友提醒了我----多例清单. 一语惊醒梦中人,很快我又投入到"搬砖"中去了. /** * 个人结售汇监测接口代码 * * @author helloalanturi原创 2017-05-16 09:16:42 · 498 阅读 · 0 评论