TreeMap in Java with examples
A TreeMap is a Red-Black Tree based implementation of a NavigableMap. In this post, we will look at TreeMap in Java and the methods offered by them.
Java Developer Central
A TreeMap is a Red-Black Tree based implementation of a NavigableMap. In this post, we will look at TreeMap in Java and the methods offered by them.
A Map data structure is an object that maps keys to values. We will see how a HashMap works in java. We will also see how get and put operations work.
The Iterator Design Pattern provides a way to access the elements of an aggregate object sequentially without exposing its underlying representation.
An immutable class is a class whose instances cannot be modified after it is created. In this post, we will look at the benefits of immutable class in Java.
An immutable class is one that does not change its state after its construction. In this post, we will see on how to make a class immutable. We will see an example class that is not immutable. Then, by applying the steps or the rules outlined we will make it immutable.
The Apache Commons CSV can be used for reading and writing Comma Separated Value (CSV) files. It is part of the Apache Commons project.
Checked exceptions are checked at compile time whereas unchecked exceptions are not. Unchecked exceptions generally denote programming errors.
A method reference is a reference to an existing method. When a lambda expression just calls an existing method, we can use a Method Reference.
A sequence of primitive int-valued elements supporting sequential and parallel and aggregate operations. It is an int primitive specialization of Stream.
The Comparator is a comparison function in Java that imposes a total ordering on a collection of objects. The comparing is a static method in it.