
Java
文章平均质量分 81
naive_1010
这个作者很懒,什么都没留下…
展开
-
10 Eclipse Navigation Shortcuts Every Java Programmer Should Know
Man, I’m such an impatient guy. I cringe whenever I see somebody squint and frown, looking for a JSP file in Eclipse by browsing painfully through the gazillion JSPs in multiple folders in the Pac...原创 2011-09-21 14:46:21 · 139 阅读 · 0 评论 -
Mockito入门
简介 InfoQ-使用Mockito 1.5监视普通对象 写道Mockito是一个针对Java的mocking框架。它与EasyMock和jMock很相似,但是通过在执行后校验什么已经被调用,它消除了对期望行为(expectations)的需要。其它的mocking库需要你在执行前记录期望行为(expectations),而这导致了丑陋的初始化代码。 更多信息请参考如...原创 2012-02-26 18:53:17 · 79 阅读 · 0 评论 -
Java 中Iterator 、Vector、ArrayList、List 使用深入剖析
线性表,链表,哈希表是常用的数据结构,在进行Java开发时,JDK已经为我们提供了一系列相应的类来实现基本的数据结构。这些类均在java.util包中。本文试图通过简单的描述,向读者阐述各个类的作用以及如何正确使用这些类。 Collection├List│├LinkedList│├ArrayList│└Vector│ └Stack└SetMap├Hashtabl...原创 2012-03-03 17:18:28 · 80 阅读 · 0 评论 -
Java System.loadLibrary - Loading a Native DLL at Runtime
A Windows DLL (i.e. a Native Java Library, such as chilkat.dll) may be loaded at runtime by calling System.loadLibrary( dllFilename ), or System.load( dllFilePath ). For example: try { ...原创 2013-04-09 13:03:39 · 207 阅读 · 0 评论 -
Ant 简明教程
命令行选项总结:ant [options] [target [target2 [target3] ...]]Options:-help print this message-projecthelp print project help information-version print the version information and exit-quiet be extra quiet-v...原创 2014-01-18 10:33:08 · 155 阅读 · 0 评论 -
利用itext实现html转pdf文档
Link: http://keyknight.blog.163.com/blog/static/366378402009431104941637/ 利用itext实现html转pdf文档的代码实在是太简单了:Document pdf = new Document(PageSize.A4, 50, 50, 50, 50);try { PdfWriter.getIn...原创 2013-08-31 20:19:52 · 238 阅读 · 0 评论