Created: 2023-08-26 10:13
Status: #concept
Subject: Programming
Tags: Java Java Package
java.util
- for a full list of the classes and sub-packages, see Oracle's Official Documentation.
List of Commonly-used Packages
-
- parse primitive Java Data Types and String Literals using Regular Expressions.
-
- a Java Generic Type list data structure imitating a Linked List.
-
- a
HashMap<T1, T2>
helper class for Hashmaps.
- a
-
- allows us to do
randomGenerator.nextInt(int bound)
.
- allows us to do
-
- contains
Arrays
static
class methods.
- contains
-
- contains
Collectors.toList()
andCollectors.toCollectionnew
static
class methods.
- contains
-
- contains
static
helper methods to manipulate anything thatimplements Collections
. Collections.sort(ArrayList<T> list)
sorts anArrayList
.
- contains
-
- provides Java Interface definitions for
.stream()
methods to let us process aggregate data with Java Lambda Expressions.
- provides Java Interface definitions for
-
- allows us to
implements Comparable<T>
to define a.compareTo(T obj)
method for comparison with java.util.Comparator functions.
- allows us to
-
- optimizes string concatenation with
.append(String)
.
- optimizes string concatenation with