Top 16 Java 应用类 - 这些功能再也不用自己写了

Java中有很多应用类。这些类定义静态方法能够解决非常多常见的问题。以下是通过5万个开源项目统计得到的最热门的16个应用类。 类按热门程序排列。类的方法也是按热门程序排序。

浏览这个类能够看看有哪些功能不用再自己写了。 很实用。 点击链接能够看到详细使用的演示样例。 原文转自: http://www.programcreek.com/2015/12/top-10-java-utility-classes/

1. org.apache.commons.io.IOUtils

2. org.apache.commons.io.FileUtils

3. org.apache.commons.lang.StringUtils

4. org.apache.http.util.EntityUtils

5. org.apache.commons.lang3.StringUtils

6. org.apache.commons.io.FilenameUtils

7. org.springframework.util.StringUtils

8. org.apache.commons.lang.ArrayUtils

9. org.apache.commons.lang.StringEscapeUtils

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

15. org.apache.commons.lang3.StringEscapeUtils

16. org.apache.commons.beanutils.BeanUtils

* The utility classes from android are excluded since they are designed for Android apps. If you want to see more details, you can search "utils" in the search portal:http://www.programcreek.com/java-api-examples/index.php. If the name of a utility class does not contain "utils", the class is not selected.

Also org.apache.commons.lang is the old version of import org.apache.commons.lang3.

原文地址:https://www.cnblogs.com/clnchanpin/p/6994027.html