- 博客(12)
- 资源 (64)
- 收藏
- 关注
转载 Use standard Collections
In the Collections Framework, there are many implementation classes to choose from. Most of the time, one of these "primary implementations" is the appropriate choiceArrayList, for an implemen
2014-02-23 23:55:08 494
转载 Use interface references to Collections
http://www.javapractices.com/topic/TopicAction.do?Id=26In general, references to objects should be as generic as possible. The user of such a reference will be protected from possible changes to
2014-02-23 23:49:50 584
转载 Use for-each liberally
http://www.javapractices.com/topic/TopicAction.do?Id=196The for-each loop is used with both collections and arrays. It's intended to simplify the most common form of iteration, where the itera
2014-02-23 23:47:47 578
转载 Two ways of using Iterator
http://www.javapractices.com/topic/TopicAction.do?Id=125When the for-each loop is not available, and an explicit Iterator is needed, then iteration over a collection may be done with a while loo
2014-02-23 23:41:28 517
转载 Prefer Collections over older classes
http://www.javapractices.com/topic/TopicAction.do?Id=39Most programmers prefer the Java Collections Framework to arrays, Vector, and Hashtable, for the following reasons:the intent of the
2014-02-23 23:36:08 618
转载 Iterate without an index
http://www.javapractices.com/topic/TopicAction.do?Id=88Many programmers have a strong preference for using a for-each loop or an Iterator instead of a for-loop.The traditional for-loop alway
2014-02-23 23:31:26 510
转载 Encapsulate collections
http://www.javapractices.com/topic/TopicAction.do?Id=173In general, Collections are not immutable objects. As such, one must often exercise care that collection fields are not unintentionally ex
2014-02-23 23:28:29 592
转载 Choosing the right Collection
http://www.javapractices.com/topic/TopicAction.do?Id=65Here's a guide for selecting the proper implementation of a Set, List, or Map. It was compiled for Java 1.4. Many additions have been made
2014-02-23 23:18:24 567
转载 Reading and writing text files
http://www.javapractices.com/topic/TopicAction.do?Id=42In JDK 7, the most important classes for text files are:Paths and Path - file locations/names, but not their content.Files - operatio
2014-02-23 23:03:52 635
转载 Reading and writing Serializable objects
http://www.javapractices.com/topic/TopicAction.do?Id=57Reading and writing Serializable objects is very similar to reading and writing text:it' almost always a good idea to use buffering (defa
2014-02-23 23:00:06 601
转载 Reading and writing binary files
http://www.javapractices.com/topic/TopicAction.do?Id=245In JDK 7, the most important classes for binary files are:Paths and Path - file locations/names, but not their content.Files - operation
2014-02-23 22:50:17 653
转载 Copy a file
http://www.javapractices.com/topic/TopicAction.do?Id=246In JDK 7+, copying a file is a simple operation, involving a single call to File.copy.Example import java.io.IOException;import j
2014-02-23 22:46:50 600
EclipseMemoryAnalyzer-x86_64
2018-01-03
微服务:从设计到部署
2017-10-21
Netty权威指南 PDF电子书下载 带目录书签 完整版
2016-05-02
Unix环境高级编程 第三版
2016-01-01
Patterns of Enterprise Application Architecture .pdf
2015-12-26
企业应用架构模式中文版_Patterns of Enterprise Application Architecture.rar
2015-12-26
用例图释义
2015-06-12
敏捷软件开发
2015-01-22
WebSphere+Application+Server
2012-12-25
x.509 证书说明书
2012-12-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人