- 博客(7)
- 资源 (5)
- 收藏
- 关注
原创 [Source Code]学习了一种比较经典的遍历XML文件的方法
使用DOM:package com.mycompany.xmltest;import java.io.File;import java.io.IOException;import javax.xml.parsers.DocumentBuilder;import javax.xml.parsers.DocumentBuilderFactory;import javax.xml.parse
2006-08-31 16:28:00 1397
原创 [读书笔记]版本控制模式------With SubVersion
Common Branching PatternsVersion control is most often used for software development, so heres a quick peek at two of the most common branching/merging patterns used by teams of programmers. If you
2006-08-16 11:09:00 1071
原创 [读书笔记][Effective Java]不要在精确计算中使用float和double类型
在精确计算,尤其是有关金钱的商业运算中,不能使用float和double类型。 看如下的例子:商店里某种糖果的价格是0.1元,0.2元,0.3元, …… 依此类推,一直到1.00元。现在你手中有1元钱。你想买一些糖果,假设你从1角的糖果开始依次买,一种价格的买一颗。计算一下一共可以买多少颗糖果,最后会剩下多少零钱。 第一个程序:package com.mytest;
2006-08-11 10:50:00 2166
原创 [Tip] Log4j的配置
[Tip] Log4j的配置 关于log4j.properties文件的位置:配置文件log4j.properties的默认路径是在src下,eclipse编译的时候,会把它拷贝到classes目录下。可以在web.xml中设置log4j的路径,不过,相应的,需要在servlet的init()方法中对配置文件进行处理。 示例如下:web.xml文件:log4j-
2006-08-10 15:48:00 1185
原创 [Source Code]Java I/O --- ---使用dom读取一个xml文件的叶子节点的text content
示例xml文件: aa1 bb1 cc1 aa2 bb2 cc2 three 源代码:package com.mycompany.xmltest;import java.io.BufferedReader;import java.io.File
2006-08-09 14:14:00 1395
原创 [读书笔记]Test Strategy - Intruductions of Stub and Mock
Stubs are a mechanism for faking the behavior of real code that may exist or thatmay not have been written yet. Stubs allow you to test a portion of a system withoutthe other part being available. The
2006-08-02 13:42:00 1428
原创 [读书笔记] Collections of objects
The Java 2 container library takes the issue of “holding your objects” and divides it into two distinct concepts: Collection: a group of individual elements, often with some rule applied to th
2006-08-01 16:48:00 1001
Packt.Publishing.EJB.3.Developer.Guide.May.2008
2011-07-12
Apress.Pro.EJB.3.Java.Persistence.API.May.2006
2011-07-12
Apress.Beginning.EJB.3.Application.Development.Sep.2006
2011-07-12
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人