Bbp_blocked

Rahul Maurya

My Articles:

Java One-Line List Initialization: List.of, Arrays.asList and More

In Java, a List can be initialized in various ways from older techniques like Arrays.asList() to modern features like List.of(). This tutorial will discuss different techniques to initialize a list in one line covering Java up to Java 21+ and future-ready practices. Method List Attributes Java Version Useful For List<String> …

Inverting a Map In Java

This Java tutorial will teach us how to invert a given Map using different techniques. We will learn to invert Maps with unique values and create Multimap when there are duplicate values. 1. What is an Inverted Map? An inverted Map <V, K> is an instance of the original Map<K, …

Get SubMap From Map In Java

A submap is a portion or part of a map between the keys of a specific range. Learn how to get submap from map in Java with different ways.

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.