Java中的java.util包

The java.util package is part of java.base module. This package contains the most important APIs and classes in Java.

java.util包是java.base模块的一部分。 该软件包包含Java中最重要的API和类。



java.util包的内容 (Contents of java.util Package)

Java util package contains the following classes and APIs:

Java util软件包包含以下类和API:



java.util软件包中的重要接口 (Important Interfaces in java.util Package)

Let’s look at some of the important interfaces in the java.util package.

让我们看一下java.util包中的一些重要接口。

  1. Collection: The root interface of the Collections API.

    集合:Collections API的根接口。
  2. Comparator: Used to implement sorting logic for the objects.

    比较器 :用于实现对象的排序逻辑。
  3. Queue and Deque: Queue and Double ended Queue

    队列和双端队列:队列和双端队列
  4. Iterator: implemented by the Collections classes to provide iteration logic.

    Iterator :由Collections类实现以提供迭代逻辑。
  5. List

    清单
  6. ListIterator

    ListIterator
  7. Map

    地图
  8. Set



java.util包中的重要类 (Important Classes in java.util Package)

  1. ArrayList

    数组列表
  2. Base64

    Base64
  3. Calendar

    日历
  4. GregorianCalendar

    阳历日历
  5. Date

    日期
  6. EnumMap

    枚举地图
  7. EnumSet

    枚举集
  8. HashMap

    哈希图
  9. HashSet

    哈希集
  10. Hashtable

    哈希表
  11. LinkedList

    链表
  12. Optional

    可选的
  13. PriorityQueue

    PriorityQueue
  14. Properties

    物产
  15. ResourceBundle

    资源束
  16. TreeMap

    树状图
  17. TreeSet

    树集


java.util软件包中的实用程序类 (Utility Classes in java.util Package)

  1. Arrays

    数组
  2. Collections

    馆藏
  3. Formatter

    格式化程序
  4. Scanner

    扫描器
  5. Random

    随机
  6. Timer, TimerTask

    计时器,TimerTask
  7. UUID

    UUID
  8. StringJoiner

    StringJoiner
  9. StringTokenizer

    StringTokenizer


java.util包中的异常 (Exceptions in java.util Package)

  1. ConcurrentModificationException

    ConcurrentModificationException
  2. EmptyStackException

    EmptyStackException
  3. IllformedLocaleException

    IllformedLocaleException
  4. InputMismatchException

    InputMismatchException
  5. MissingResourceException

    MissingResourceException
  6. NoSuchElementException

    NoSuchElementException
  7. PatternSyntaxException

    PatternSyntaxException
  8. ZipException, JarException

    ZipException,JarException
  9. IllegalFormatException

    IllegalFormatException


参考文献: (References:)

翻译自: https://www.journaldev.com/31593/java-util-package-in-java

  • 2
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值