在Java中,有不少比较实用的类库,他们一般都定义了一系列具备常见功能的方法。本文总结了最经常使用的Java中的实用类以及他们的最经常使用的方法。不管是类和类中方法都是按照流行程度来排序的。php
本文中列出来的类及方法都是通过大量实践的经常使用类库及方法,咱们能够直接拿过来用。固然,这些方法实现的功能咱们本身都能实现,可是既然已经有很成熟的方法能够供咱们使用了,那么就无需本身定义了。不少类和方法经过他们的名字其实能够理解出具体是作什么的。每一个方法都有一个连接,能够查看他们在开源代码中具体是如何使用的。java
2. org.apache.commons.io.FileUtilsspring
3. org.apache.commons.lang.StringUtilsapache
4. org.apache.http.util.EntityUtilsapi
5. org.apache.commons.lang3.StringUtilsui
6. org.apache.commons.io.FilenameUtilsgoogle
7. org.springframework.util.StringUtilsspa
8. org.apache.commons.lang.ArrayUtilscode
9. org.apache.commons.lang.StringEscapeUtilsorm
10. org.apache.http.client.utils.URLEncodedUtils
11. org.apache.commons.codec.digest.DigestUtils
12. org.apache.commons.collections.CollectionUtils
13. org.apache.commons.lang3.ArrayUtils
14. org.apache.commons.beanutils.PropertyUtils