Java Unit 9
Java Unit 9
You can use `Math` class methods to perform basic mathematical calculations such as
rounding numbers, generating random numbers, finding the absolute value, finding the
maximum and minimum of two numbers, and more. For example, you can use the
`Math.sqrt()` method to calculate the square root of a number or the `Math.abs()`
method to find the absolute value of a number.
Collections: This class provides various static methods for working with collections such
as sorting, searching, and manipulating collections.
List: This is an interface that represents an ordered collection of elements that can
contain duplicates.
Map: This is an interface that represents a mapping between a key and a value.
Date and Time API: This package provides classes and interfaces for working with dates
and times, such as LocalDate, LocalTime, and LocalDateTime.
Scanner: This class provides methods for reading input from various sources such as the
console, files, and strings.